mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
bugfix #3849 : custom menu name updated in db menu table when name changed
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/cpage.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/cpage.php,v $
|
||||||
| $Revision: 1.2 $
|
| $Revision: 1.3 $
|
||||||
| $Date: 2007-01-09 20:28:44 $
|
| $Date: 2007-03-23 20:39:52 $
|
||||||
| $Author: e107steved $
|
| $Author: lisa_ $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -313,6 +313,12 @@ class page
|
|||||||
$e107cache->clear("page_{$mode}");
|
$e107cache->clear("page_{$mode}");
|
||||||
$e107cache->clear("page-t_{$mode}");
|
$e107cache->clear("page-t_{$mode}");
|
||||||
|
|
||||||
|
if($type)
|
||||||
|
{
|
||||||
|
$sql -> db_Update("menus", "menu_name='$page_title' WHERE menu_path='$mode' ");
|
||||||
|
$update++;
|
||||||
|
}
|
||||||
|
|
||||||
if ($_POST['page_link'])
|
if ($_POST['page_link'])
|
||||||
{
|
{
|
||||||
if ($sql -> db_Select("links", "link_id", "link_url='page.php?".$mode."' && link_name!='".$tp -> toDB($_POST['page_link'])."'"))
|
if ($sql -> db_Select("links", "link_id", "link_url='page.php?".$mode."' && link_name!='".$tp -> toDB($_POST['page_link'])."'"))
|
||||||
|
Reference in New Issue
Block a user