Changeset f6a7491 in github


Ignore:
Timestamp:
Jan 27, 2012 11:52:21 AM (16 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
3c71c67
Parents:
77c779a
Message:

Fix special vars replacement in templates

Location:
program/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_html_page.php

    r7fe3811 rf6a7491  
    285285            '!(src|href|background)=(["\']?)([a-z0-9/_.-]+)(["\'\s>])!i', 
    286286            array($this, 'file_callback'), $output); 
    287         $output = str_replace('$__skin_path', $base_path, $output); 
    288287 
    289288        // trigger hook with final HTML content to be sent 
  • program/include/rcube_template.php

    r7fe3811 rf6a7491  
    529529        $GLOBALS['__version'] = Q(RCMAIL_VERSION); 
    530530        $GLOBALS['__comm_path'] = Q($this->app->comm_path); 
     531        $GLOBALS['__skin_path'] = Q($this->config['skin_path']); 
    531532        return preg_replace_callback('/\$(__[a-z0-9_\-]+)/', 
    532533            array($this, 'globals_callback'), $input); 
Note: See TracChangeset for help on using the changeset viewer.