Changeset 1456


Ignore:
Timestamp:
Jul 9, 2006, 7:58:21 PM (18 years ago)
Author:
chrisaga
Message:

improve : evaluate {pwg_root} after any {themeconf:_} variable to allow using {pwg_root} in themeconf.inc.php

usefull for including theme specific fix-ie5-ie6.css

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.php

    r1092 r1456  
    329329  function compile($code, $do_not_echo = false, $retvar = '')
    330330    {
    331       $code = preg_replace('/\{pwg_root\}/e', "get_root_url()", $code);
    332331      // PWG specific : communication between template and $lang
    333332      $code = preg_replace('/\{lang:([^}]+)\}/e', "l10n('$1')", $code);
    334333      // PWG specific : expand themeconf.inc.php variables
    335334      $code = preg_replace('/\{themeconf:([^}]+)\}/e', "get_themeconf('$1')", $code);
     335      $code = preg_replace('/\{pwg_root\}/e', "get_root_url()", $code);
    336336
    337337      // replace \ with \\ and then ' with \'.
Note: See TracChangeset for help on using the changeset viewer.