Changeset 597 for trunk/Modules/IS/IS.php
- Timestamp:
- Nov 22, 2013, 10:37:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r586 r597 484 484 $LinkTitle = MakeLink($MenuItem['URL'], $LinkTitle); 485 485 } 486 if($MenuItem['IconName'] != '') $Image = '<img src="../images/favicons/'.$MenuItem['IconName'].'"/> '; 487 else $Image = '<img src="../images/favicons/blank.png"/> '; 488 $Output .= '<li>'.$Image.$LinkTitle.'</li>'; 486 if($MenuItem['IconName'] != '') $Image = '<img src="'.$this->System->Link('/images/favicons/'.$MenuItem['IconName']).'"/> '; 487 else $Image = '<img src="'.$this->System->Link('/images/favicons/blank.png').'"/> '; 488 if(!$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 489 $Output .= '<li>'.$Image.$LinkTitle.'</li>'; 489 490 $Output .= $this->ShowMenuItem($MenuItem['Id']); 490 491 } … … 495 496 function TableToModule($Table) 496 497 { 497 $DbResult = $this->Database->query('SELECT (SELECT Name FROM Module WHERE Module.Id=Model.Module) AS Name FROM Model WHERE Name="'.$Table.'"'); 498 $DbResult = $this->Database->query('SELECT (SELECT `Name` FROM `Module` '. 499 'WHERE `Module`.`Id`=`Model`.`Module`) AS `Name` FROM `Model` WHERE `Name`="'.$Table.'"'); 498 500 if($DbResult->num_rows == 1) 499 501 {
Note:
See TracChangeset
for help on using the changeset viewer.