From caa0b572cbb2a72aedd9e7594f7456438f3f422c Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 10 Dec 2002 23:11:14 +0000 Subject: [PATCH] fix plugin error logic --- Smarty.class.php | 4 ++-- libs/Smarty.class.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index 77e594ad..7e431124 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -117,7 +117,7 @@ class Smarty var $config_read_hidden = false; // whether hidden sections [.foobar] // are readable from the templates or not var $config_fix_newlines = true; // whether or not to fix mac or dos formatted - // newlines [\r\n] -> \n + // newlines: convert \r or \r\n to \n var $default_template_handler_func = ''; // function to handle missing templates @@ -1901,7 +1901,7 @@ function _run_insert_handler($args) $plugin_file = $this->_get_plugin_filepath($type, $name); - if ($found = ($plugin_file != false)) { + if (! $found = ($plugin_file != false)) { $message = "could not load plugin file '$type.$name.php'\n"; } diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 77e594ad..7e431124 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -117,7 +117,7 @@ class Smarty var $config_read_hidden = false; // whether hidden sections [.foobar] // are readable from the templates or not var $config_fix_newlines = true; // whether or not to fix mac or dos formatted - // newlines [\r\n] -> \n + // newlines: convert \r or \r\n to \n var $default_template_handler_func = ''; // function to handle missing templates @@ -1901,7 +1901,7 @@ function _run_insert_handler($args) $plugin_file = $this->_get_plugin_filepath($type, $name); - if ($found = ($plugin_file != false)) { + if (! $found = ($plugin_file != false)) { $message = "could not load plugin file '$type.$name.php'\n"; }