Ignore:
Timestamp:
01/06/13 02:07:37 (7 years ago)
Author:
julien1311
Message:

[media_icon] load admin.css only on admin pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Media_Icon/main.inc.php

    r19647 r19876  
    5252        //add a stylesheet 
    5353        $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">'); 
    54         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'admin/admin.css">'); 
     54        if (defined('IN_ADMIN') and IN_ADMIN) 
     55                $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'admin/admin.css">'); 
    5556} 
    5657?> 
Note: See TracChangeset for help on using the changeset viewer.