[Svn] r2515 - trunk/roundcubemail/program/include

A.L.E.C alec at alec.pl
Fri May 22 08:33:51 CEST 2009


A.L.E.C wrote:

>> +        // replace all path references to plugins/... with the configured plugins dir
>> +        // and /this/ to the current plugin skin directory
>>          if ($plugin) {
>> -          $templ = preg_replace('/\bplugins\//', $this->config['plugins_dir'].'/', $templ);
>> +            $templ = preg_replace(array('/\bplugins\//', '/(["\']?)\/this\//'), array($this->config['plugins_dir'].'/', "\\1$skin_path/"), $templ);
> 
> This inserts absolute paths, which are not useful inside templates.
> We need paths relative to index.php. Or I've miss something?
> 

Ops, now I see. This is only for template files. I need something familiar for images.

-- 
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list