fix unnecessary loading of core.load_resource_plugin.php

This commit is contained in:
messju
2003-11-13 16:50:33 +00:00
parent e15cacbc82
commit 7d391d55a8

View File

@@ -1702,7 +1702,7 @@ class Smarty
} }
return false; return false;
} }
} else { } elseif (empty($this->_plugins['resource'][$params['resource_type']])) {
$_params = array('type' => $params['resource_type']); $_params = array('type' => $params['resource_type']);
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_resource_plugin.php'); require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_resource_plugin.php');
smarty_core_load_resource_plugin($_params, $this); smarty_core_load_resource_plugin($_params, $this);