cvs: smarty / NEWS /libs/core core.assemble_plugin_filepath.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1061568947@cvsserver> |
messju Fri Aug 22 12:15:47 2003 EDT
Modified files:
/smarty NEWS
/smarty/libs/core core.assemble_plugin_filepath.php
Log:
fixed bug in traversal of $smarty->plugins_dir-array in
smarty_core_assemble_plugin_filepath(). the first matching plugin in
the path should be used, not the last one.
Index: smarty/NEWS
diff -u smarty/NEWS:1.390 smarty/NEWS:1.391
--- smarty/NEWS:1.390 Wed Aug 20 10:48:34 2003
+++ smarty/NEWS Fri Aug 22 12:15:46 2003
@@ -1,3 +1,5 @@
+ - fixed bug in traversal of $smarty->plugins_dir-array. now the
+ first matching plugin is taken (messju)
- moved {strip} back into the compiler (messju)
- fixed config_load: handling of section-attribute and use of
multiple config-files in one template (atu, messju)
Index: smarty/libs/core/core.assemble_plugin_filepath.php
diff -u smarty/libs/core/core.assemble_plugin_filepath.php:1.4 smarty/libs/core/core.assemble_plugin_filepath.php:1.5
--- smarty/libs/core/core.assemble_plugin_filepath.php:1.4 Mon Jun 23 07:21:22 2003
+++ smarty/libs/core/core.assemble_plugin_filepath.php Fri Aug 22 12:15:47 2003
@@ -28,11 +28,13 @@
// relative path, see if it is in the SMARTY_DIR
if (@is_readable(SMARTY_DIR . $_plugin_filepath)) {
$_return = SMARTY_DIR . $_plugin_filepath;
+ break;
}
}
// try relative to cwd (or absolute)
if (@is_readable($_plugin_filepath)) {
$_return = $_plugin_filepath;
+ break;
}
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php