Ignore:
Timestamp:
Jun 15, 2008 5:19:47 AM (5 years ago)
Author:
alec
Message:
  • Added option to select skin in user preferences (#1485031)
  • template_exists() moved to rcube_template class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r1532 r1539  
    501501  return preg_replace('/[\r\n]/', '', $str); 
    502502} 
    503  
    504  
    505 /** 
    506  * Check if a specific template exists 
    507  * 
    508  * @param string Template name 
    509  * @return boolean True if template exists 
    510  */ 
    511 function template_exists($name) 
    512   { 
    513   global $CONFIG; 
    514   $skin_path = $CONFIG['skin_path']; 
    515  
    516   // check template file 
    517   return is_file("$skin_path/templates/$name.html"); 
    518   } 
    519503 
    520504 
Note: See TracChangeset for help on using the changeset viewer.