X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=class%2Ftemplate%2FTemplate.class.php;h=27c02030ebbf7c97aeba4504d0bd7f6f0c264589;hb=c997cbe6f5a46d432d7733acb207dfcdfd00e49e;hp=be77e19f40715816b2d7ee63dcc872c8bd4ae7df;hpb=30460a05016c7e066ad7b28df7788539e4054a99;p=squirrelmail.git diff --git a/class/template/Template.class.php b/class/template/Template.class.php index be77e19f..27c02030 100644 --- a/class/template/Template.class.php +++ b/class/template/Template.class.php @@ -8,7 +8,7 @@ * class with any custom functionality needed to interface a target * templating engine with SquirrelMail. * - * @copyright 2003-2009 The SquirrelMail Project Team + * @copyright 2003-2021 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -159,7 +159,7 @@ class Template * @static * */ - function construct_template($template_set_id) { + static function construct_template($template_set_id) { $template = new Template($template_set_id); $template->override_plugins(); @@ -234,7 +234,7 @@ class Template * @static * */ - function get_fallback_template_set($default='default') { + static function get_fallback_template_set($default='default') { // FIXME: do we want to place any restrictions on the ID such as // making sure no slashes included? @@ -285,7 +285,7 @@ class Template * @static * */ - function get_default_template_set($default='default') { + static function get_default_template_set($default='default') { // FIXME: do we want to place any restrictions on the ID such as // making sure no slashes included? @@ -336,7 +336,7 @@ class Template * @static * */ - function get_rpc_template_set($default='default_rpc') { + static function get_rpc_template_set($default='default_rpc') { // FIXME: do we want to place any restrictions on the ID such as // making sure no slashes included? @@ -475,7 +475,7 @@ class Template * @static * */ - function calculate_template_file_directory($template_set_id) { + static function calculate_template_file_directory($template_set_id) { return 'templates/' . $template_set_id . '/'; @@ -493,7 +493,7 @@ class Template * @static * */ - function calculate_template_images_directory($template_set_id) { + static function calculate_template_images_directory($template_set_id) { return 'templates/' . $template_set_id . '/images/'; @@ -592,7 +592,7 @@ class Template * @static * */ - function get_template_config($template_set_id, $setting, + static function get_template_config($template_set_id, $setting, $default=NULL, $live_config=FALSE) { sqGetGlobalVar('template_configuration_settings', @@ -714,7 +714,7 @@ class Template * @static * */ - function cache_template_file_hierarchy($template_set_id, + static function cache_template_file_hierarchy($template_set_id, $regenerate_cache=FALSE, $additional_files=array()) { @@ -793,7 +793,7 @@ class Template * @static * */ - function catalog_template_files($template_set_id, $file_list=array(), $directory='') { + static function catalog_template_files($template_set_id, $file_list=array(), $directory='') { $template_base_dir = SM_PATH . Template::calculate_template_file_directory($template_set_id); @@ -1480,7 +1480,7 @@ FIXME: We could make the incoming array more complex so it can if (empty($template)) { - trigger_error('The template "' . htmlspecialchars($file) + trigger_error('The template "' . sm_encode_html_special_chars($file) . '" could not be fetched!', E_USER_ERROR); } else {