Rename title into name for menu items
authorJoey Schulze <joey@infodrom.org>
Wed, 3 Mar 2010 16:29:08 +0000 (17:29 +0100)
committerJoey Schulze <joey@infodrom.org>
Wed, 3 Mar 2010 16:29:08 +0000 (17:29 +0100)
lib/menu.php
masks/sys_mask.php

index e20b4d0..1a9c2af 100644 (file)
@@ -13,7 +13,7 @@ function menu()
   $ret .= '<li><a href="./" title="Zurück zur Hauptseite">Start</a></li>';
   $ret .= '<li><a href="./?logout=true" title="Abmelden">Logout</a></li>';
 
-  $sql = "SELECT fname,menutitle,name FROM sys_mask "
+  $sql = "SELECT fname,menutitle,sys_menu.name FROM sys_mask "
     . "JOIN sys_menu ON sys_mask.menu = sys_menu.id "
     . "JOIN sys_group_mask ON sys_mask.id = sys_group_mask.mask "
     . "WHERE sys_group_mask.gid = ".$_SESSION['sys']['group']." "
index 1e6ecca..b8dd7ec 100644 (file)
@@ -37,9 +37,10 @@ $mask = array(
                                            'name' => 'Dateiname',
                                            'width' => 100,
                                            ),
-                             'title' => array(
-                                           'name' => 'Beschreibung',
+                             'name' => array(
+                                           'name' => 'Name',
                                            'width' => 150,
+                                           'sql' => 'sys_mask.name',
                                            ),
                              'menutitle' => array(
                                            'name' => 'Menüpunkt',
@@ -84,8 +85,8 @@ $mask = array(
                                            'options' => discover_masks(),
                                            'options_string' => true,
                                            ),
-                             'title' => array(
-                                           'name' => 'Beschreibung',
+                             'name' => array(
+                                           'name' => 'Name',
                                            'type' => 'text',
                                            'size' => 24,
                                            ),