1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 16:17:14 +02:00

Reworked storage of custom menus.

This commit is contained in:
Cameron
2013-03-06 23:01:16 -08:00
parent 3d26475d97
commit 8895d48dd1
11 changed files with 321 additions and 111 deletions

View File

@@ -976,7 +976,24 @@ function update_706_to_800($type='')
//TODO - send notification messages to Log.
if($sql->gen("SELECT * FROM #page WHERE page_theme != '' AND menu_title = '' LIMIT 1"))
{
if ($just_check)
{
return update_needed("Pages/Menus Table requires updating.");
}
if($sql->update('page',"menu_title = page_title, menu_text = page_text WHERE menu_title = '' AND menu_text = '' "))
{
$mes->addDebug("Successfully updated pages/menus table to new format. ");
}
}