mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- update of $smarty->test() methode
This commit is contained in:
@@ -36,15 +36,6 @@ function test($smarty)
|
|||||||
else
|
else
|
||||||
echo "{$smarty->compile_dir} is OK.\n";
|
echo "{$smarty->compile_dir} is OK.\n";
|
||||||
|
|
||||||
echo "Testing sysplugins directory...\n";
|
|
||||||
|
|
||||||
if (!is_dir($smarty->sysplugins_dir))
|
|
||||||
echo "FAILED: $smarty->sysplugins_dir is not a directory.\n";
|
|
||||||
elseif (!is_readable($smarty->sysplugins_dir))
|
|
||||||
echo "FAILED: $smarty->sysplugins_dir is not readable.\n";
|
|
||||||
else
|
|
||||||
echo "{$smarty->sysplugins_dir} is OK.\n";
|
|
||||||
|
|
||||||
echo "Testing plugins directory...\n";
|
echo "Testing plugins directory...\n";
|
||||||
|
|
||||||
foreach((array)$smarty->plugins_dir as $plugin_dir) {
|
foreach((array)$smarty->plugins_dir as $plugin_dir) {
|
||||||
|
Reference in New Issue
Block a user