move importance/wikipedia functions into separate file

This commit is contained in:
Sarah Hoffmann
2020-01-05 15:55:39 +01:00
parent 0ef6425847
commit 4088e4e371
3 changed files with 126 additions and 114 deletions

View File

@@ -651,6 +651,7 @@ class SetupFunctions
$sBasePath = CONST_BasePath.'/sql/functions/';
$sTemplate = file_get_contents(CONST_BasePath.'/sql/functions.sql');
$sTemplate .= file_get_contents($sBasePath.'normalization.sql');
$sTemplate .= file_get_contents($sBasePath.'importance.sql');
$sTemplate = str_replace('{modulepath}', $this->sModulePath, $sTemplate);
if ($this->bEnableDiffUpdates) {
$sTemplate = str_replace('RETURN NEW; -- %DIFFUPDATES%', '--', $sTemplate);