alecpl
2009-05-21 969f6b4c8b490f57f4b1befb587eae35041cc332
- support plugin templates


1 files modified
5 ■■■■■ changed files
program/include/rcube_template.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcube_template.php
@@ -332,6 +332,11 @@
    private function parse($name = 'main', $exit = true)
    {
        $skin_path = $this->config['skin_path'];
    $temp = explode(".", $name, 2);
    if (count($temp) > 1) {
        $path = $this->config['plugins_dir'] . '/' . $temp[0] . '/skins/' . $this->config['skin'] . '/templates/' . $temp[1] . '.html';
    } else
        $path = "$skin_path/templates/$name.html";
        // read template file