mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +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
|
05/05/2009
|
||||||
- fixed E_STRICT incompabilities
|
- fixed E_STRICT incompabilities
|
||||||
- {function} tag bug fix
|
- {function} tag bug fix
|
||||||
|
@@ -449,6 +449,10 @@ class Smarty extends Smarty_Internal_TemplateBase {
|
|||||||
}
|
}
|
||||||
// loop through plugin dirs and find the plugin
|
// loop through plugin dirs and find the plugin
|
||||||
foreach((array)$this->plugins_dir as $_plugin_dir) {
|
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)) {
|
if (file_exists($_plugin_dir . $_plugin_filename)) {
|
||||||
require_once($_plugin_dir . $_plugin_filename);
|
require_once($_plugin_dir . $_plugin_filename);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user