Changeset 2509 in subversion


Ignore:
Timestamp:
May 21, 2009 3:14:05 AM (4 years ago)
Author:
alec
Message:
  • support plugin templates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_template.php

    r2441 r2509  
    333333    { 
    334334        $skin_path = $this->config['skin_path']; 
    335         $path = "$skin_path/templates/$name.html"; 
     335         
     336        $temp = explode(".", $name, 2); 
     337        if (count($temp) > 1) { 
     338            $path = $this->config['plugins_dir'] . '/' . $temp[0] . '/skins/' . $this->config['skin'] . '/templates/' . $temp[1] . '.html'; 
     339        } else 
     340            $path = "$skin_path/templates/$name.html"; 
    336341 
    337342        // read template file 
Note: See TracChangeset for help on using the changeset viewer.