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

Thomas Bruederli roundcube at gmail.com
Fri May 22 09:35:32 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.
>>
>
> Ok. I wake up too early this morning ;) I was right in my previous post, we need relative paths.
>

I don't understand what you mean. The replacements should turn
href="/this/managesieve.css" into 
"href="plugins/managesieve/skins/default/managesieve.css" which is still 
relative to index.php.

This works at least on my development system.
_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list