1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Fixes #835 and brings Pages search routine up to v2.x standards.

This commit is contained in:
Cameron
2015-01-27 19:06:12 -08:00
parent 4c897c905d
commit 543c296442
11 changed files with 209 additions and 39 deletions

View File

@@ -1580,7 +1580,34 @@ function update_706_to_800($type='')
$log->addDebug("Icon category added");
}
// Search Clean up ----------------------------------
$searchPref = e107::getConfig('search');
if($searchPref->getPref('core_handlers/news'))
{
if ($just_check) return update_needed('Core search handlers need to be updated.');
$searchPref->removePref('core_handlers/news')->save(false,true,false);
}
if($searchPref->getPref('core_handlers/downloads'))
{
if ($just_check) return update_needed('Core search handlers need to be updated.');
$searchPref->removePref('core_handlers/downloads')->save(false,true,false);
}
if($searchPref->getPref('core_handlers/pages'))
{
if ($just_check) return update_needed('Core search handlers need to be updated.');
$searchPref->removePref('core_handlers/pages')->save(false,true,false);
}
// Any other images should be imported manually via Media Manager batch-import.
// ------------------------------------------------------------------