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

A.L.E.C alec at alec.pl
Fri May 22 08:37:59 CEST 2009

A.L.E.C wrote:
> 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.

Ok. I wake up too early this morning ;) I was right in my previous post, we need relative paths.

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

More information about the Svn mailing list