1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 20:51:53 +02:00

Issue #1109 - Page table upgrade.

This commit is contained in:
Cameron 2015-07-04 10:05:55 -07:00
parent cf4ac712bd
commit a0e91828d6

View File

@ -187,7 +187,7 @@ class e107Update
{
if(function_exists("update_".$func))
{
$message = LAN_UPDATE_7." ".$data['title'];
$message = LAN_UPDATE_7." ".$func;
$error = call_user_func("update_".$func, "do");
if($error != '')
@ -1168,7 +1168,7 @@ function update_706_to_800($type='')
//TODO - send notification messages to Log.
if($sql->field('page','page_theme') && $sql->gen("SELECT * FROM #page WHERE page_theme != '' AND menu_title = '' LIMIT 1"))
if($sql->field('page','page_theme') && $sql->gen("SELECT * FROM `#page` WHERE page_theme != '' AND menu_title = '' LIMIT 1"))
{
if ($just_check)
{
@ -1177,7 +1177,7 @@ function update_706_to_800($type='')
if($sql->update('page',"menu_name = page_theme, menu_title = page_title, menu_text = page_text, menu_template='default', page_title = '', page_text = '' WHERE page_theme !='' AND menu_title = '' AND menu_text = '' "))
{
$sql->gen("ALTER TABLE `#page` DROP `page_theme`");
$sql->gen("ALTER TABLE `#page` DROP page_theme ");
$mes = e107::getMessage();
$log->addDebug("Successfully updated pages/menus table to new format. ");
}