Ignore:
Timestamp:
10/27/07 11:28:20 (5 years ago)
Author:
root
Message:

Merged trunk revision 1018:1026 into the PLi-Fusion branch

Location:
branches/PLi-Fusion
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion

    • Property svn:ignore
      •  

        old new  
        22config.backup.php 
        33config.php 
         4_revision_.svn 
  • branches/PLi-Fusion/administration/index.php

    r1018 r1027  
    6565    while ($data = dbarray($result)) { 
    6666        if (checkrights($data['admin_rights']) && $data['admin_link'] != "reserved") { 
    67             // check the location of the admin image, and add the correct path to it 
     67            // check the location and the existence of the admin image, and pass the full path to the template 
    6868            $path = explode("/", $data['admin_link']); 
    69             if (isset($path[2])) { 
     69            if (isset($path[2]) && file_exists(PATH_MODULES.$path[2]."/images/".$data['admin_image'])) { 
    7070                $data['admin_image'] = MODULES.$path[2]."/images/".$data['admin_image']; 
    7171            } else { 
    72                 $data['admin_image'] = ADMIN."images/".$data['admin_image']; 
     72                if (file_exists(PATH_ADMIN."images/".$data['admin_image'])) { 
     73                    $data['admin_image'] = ADMIN."images/".$data['admin_image']; 
     74                } else { 
     75                    $data['admin_image'] = ADMIN."images/module_panel.gif"; 
     76                } 
    7377            } 
    7478            // store the record 
Note: See TracChangeset for help on using the changeset viewer.