Ignore:
Timestamp:
Apr 10, 2011, 7:43:01 PM (14 years ago)
Author:
grum
Message:

bug:2149
Compatibility with Piwigo 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/classes/GPCCss.class.inc.php

    r5958 r10246  
    33/* -----------------------------------------------------------------------------
    44  class name: GPCCss
    5   class version  : 3.0.0
    6   plugin version : 3.0.0
    7   date           : 2010-03-30
     5  class version  : 3.1.0
     6  plugin version : 3.5.0
     7  date           : 2011-01-31
    88
    99  ------------------------------------------------------------------------------
     
    2121| 3.0.0   | 2010/03/30 | * Update class & function names
    2222|         |            |
    23 |         |            |
     23| 3.1.0   | 2011/01/31 | * Updated for piwigo 2.2
    2424|         |            |
    2525|         |            |
     
    5454    {
    5555      //if no filename given, load the gpc.css file
    56       $fileName=basename(dirname(dirname(__FILE__))).'/css/gpc.css';
    57       $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="plugins/'.$fileName.'">');
     56      $fileName='./plugins/'.basename(dirname(dirname(__FILE__))).'/css/gpc.css';
     57      GPCCore::addHeaderCSS('gpc', $fileName);
    5858    }
    5959    elseif(file_exists($fileName))
    6060    {
    61       $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="plugins/'.basename(dirname($fileName))."/".basename($fileName).'">');
     61      GPCCore::addHeaderCSS(basename(dirname($fileName)), 'plugins/'.basename(dirname($fileName)).'/'.basename($fileName).'');
    6262    }
    6363  }
Note: See TracChangeset for help on using the changeset viewer.