Changeset 1016 in ExiteCMS


Ignore:
Timestamp:
10/24/07 22:04:00 (4 years ago)
Author:
hverton
Message:

Fixed finding module admin icons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/index.php

    r1015 r1016  
    6666        if (checkrights($data['admin_rights']) && $data['admin_link'] != "reserved") { 
    6767            // check the location of the admin image, and add the correct path to it 
    68             if (!$path = strrchr($data['admin_link'], "/")) { 
    69                 $path = ADMIN; 
     68            $path = explode("/", $data['admin_link']); 
     69            if (isset($path[2])) { 
     70                $data['admin_image'] = MODULES."/".$path."/images/".$data['admin_image']; 
     71            } else { 
     72                $data['admin_image'] = ADMIN."images/".$data['admin_image']; 
    7073            } 
    71             $data['admin_image'] = $path."images/".$data['admin_image']; 
    7274            // store the record 
    7375            $modules[] = $data; 
Note: See TracChangeset for help on using the changeset viewer.