cvs: smarty /libs Smarty.class.php /libs/core core.load_plugins.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1059462944@cvsserver> |
messju Tue Jul 29 03:15:44 2003 EDT
Modified files:
/smarty/libs Smarty.class.php
/smarty/libs/core core.load_plugins.php
Log:
prevent unnecessary calls to _read_file() in _is_compiled()
converted method-call to internal function-call in smarty_core_load_plugins()
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.423 smarty/libs/Smarty.class.php:1.424
--- smarty/libs/Smarty.class.php:1.423 Wed Jul 23 12:14:47 2003
+++ smarty/libs/Smarty.class.php Tue Jul 29 03:15:43 2003
@@ -42,7 +42,7 @@
* @version 2.5.0-cvs
*/
-/* $Id: Smarty.class.php,v 1.423 2003/07/23 16:14:47 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.424 2003/07/29 07:15:43 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1459,7 +1459,7 @@
return true;
} else {
// get file source and timestamp
- $_params = array('resource_name' => $resource_name);
+ $_params = array('resource_name' => $resource_name, 'get_source'=>false);
if (!$this->_fetch_resource_info($_params, $this)) {
return false;
}
Index: smarty/libs/core/core.load_plugins.php
diff -u smarty/libs/core/core.load_plugins.php:1.3 smarty/libs/core/core.load_plugins.php:1.4
--- smarty/libs/core/core.load_plugins.php:1.3 Sat Jun 21 23:13:25 2003
+++ smarty/libs/core/core.load_plugins.php Tue Jul 29 03:15:44 2003
@@ -69,7 +69,7 @@
include_once $_plugin_file;
$_plugin_func = 'smarty_' . $_type . '_' . $_name;
- if (!$smarty->_plugin_implementation_exists($_plugin_func)) {
+ if (!function_exists($_plugin_func)) {
$smarty->_trigger_fatal_error("[plugin] function $_plugin_func() not found in $_plugin_file", $_tpl_file, $_tpl_line, __FILE__, __LINE__);
continue;
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php