From: hickert Date: Tue, 25 Oct 2011 12:42:30 +0000 (+0000) Subject: Removed smarty plugin loading X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=59ccab6435432d90df6793ea7f8dea06a43b1f50;p=gosa.git Removed smarty plugin loading git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@21026 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/php_setup.inc b/gosa-core/include/php_setup.inc index 820c6da89..29e018a3e 100644 --- a/gosa-core/include/php_setup.inc +++ b/gosa-core/include/php_setup.inc @@ -308,17 +308,17 @@ if(defined('SMARTY_PHP_REMOVE')){ } // Register GOsa contributed smarty plugins -$d = opendir("$BASE_DIR/include/smartyAddons"); -while($file = readdir($d)){ - if(preg_match("/\.php$/", $file)) require_once("$BASE_DIR/include/smartyAddons/{$file}"); -} +#$d = opendir("$BASE_DIR/include/smartyAddons"); +#while($file = readdir($d)){ +# if(preg_match("/\.php$/", $file)) require_once("$BASE_DIR/include/smartyAddons/{$file}"); +#} #$smarty->registerPlugin("block", "tr", "smarty_block_tr"); -$smarty->registerPlugin("block", "t", "smarty_block_t"); -$smarty->registerPlugin("block", "render", "smarty_block_render"); -$smarty->registerPlugin("function", "msgPool", "smarty_function_msgPool"); -$smarty->registerPlugin("function", "image", "smarty_function_image"); -$smarty->registerPlugin("function", "factory", "smarty_function_factory"); +#$smarty->registerPlugin("block", "t", "smarty_block_t"); +#$smarty->registerPlugin("block", "render", "smarty_block_render"); +#$smarty->registerPlugin("function", "msgPool", "smarty_function_msgPool"); +#$smarty->registerPlugin("function", "image", "smarty_function_image"); +#$smarty->registerPlugin("function", "factory", "smarty_function_factory"); /* Global FPDF define */ define('FPDF_FONTPATH', '/usr/share/php/fpdf/font/');