Changeset 1015 in ExiteCMS


Ignore:
Timestamp:
10/24/07 21:48:43 (4 years ago)
Author:
root
Message:

Removed the administration directories from the modules. Admin panel icons are now stored within the module directory.

Files:
6 added
5 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/index.php

    r834 r1015  
    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 
     68            if (!$path = strrchr($data['admin_link'], "/")) { 
     69                $path = ADMIN; 
     70            } 
     71            $data['admin_image'] = $path."images/".$data['admin_image']; 
     72            // store the record 
    6773            $modules[] = $data; 
    6874        } 
  • trunk/includes/templates/admin.index.tpl

    r957 r1015  
    5858                        {if $admin_images|default:false} 
    5959                            <span class='small'> 
    60                                 <a href='{$modules[link].admin_link}{$aidlink}'><img src='{$smarty.const.ADMIN}images/{$modules[link].admin_image}' alt='{$modules[link].admin_title|escape:"html"}' style='border:0px;' /></a> 
     60                                <a href='{$modules[link].admin_link}{$aidlink}'><img src='{$modules[link].admin_image}' alt='{$modules[link].admin_title|escape:"html"}' style='border:0px;' /></a> 
    6161                                <br /> 
    6262                                <a href='{$modules[link].admin_link}{$aidlink}'>{$modules[link].admin_title|escape:"html"}</a> 
Note: See TracChangeset for help on using the changeset viewer.