Changeset 1457


Ignore:
Timestamp:
Jul 9, 2006, 8:00:13 PM (18 years ago)
Author:
chrisaga
Message:

merge from trunk r1455:1456 into branch 1.6 (use {pwg_root} in themeconf.inc.php)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/template.php

    r1092 r1457  
    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.