mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- allow that plugins_dir folder names can end without directory separator
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
05/06/2009
|
||||
- allow that plugins_dir folder names can end without directory separator
|
||||
|
||||
05/05/2009
|
||||
- fixed E_STRICT incompabilities
|
||||
- {function} tag bug fix
|
||||
|
@@ -449,6 +449,10 @@ class Smarty extends Smarty_Internal_TemplateBase {
|
||||
}
|
||||
// loop through plugin dirs and find the plugin
|
||||
foreach((array)$this->plugins_dir as $_plugin_dir) {
|
||||
if (substr($_plugin_dir, -1) != DIRECTORY_SEPARATOR) {
|
||||
$_plugin_dir .= DIRECTORY_SEPARATOR;
|
||||
}
|
||||
|
||||
if (file_exists($_plugin_dir . $_plugin_filename)) {
|
||||
require_once($_plugin_dir . $_plugin_filename);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user