mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-01 04:41:37 +01:00
fix filepaths to core files to use DIRECTORY_SEPARATOR
This commit is contained in:
@@ -20,7 +20,7 @@ function smarty_core_process_cached_inserts($params, &$this)
|
||||
for ($i = 0, $for_max = count($cached_inserts); $i < $for_max; $i++) {
|
||||
if ($this->debugging) {
|
||||
$_params = array();
|
||||
require_once(SMARTY_DIR . 'core/core.get_microtime.php');
|
||||
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php');
|
||||
$debug_start_time = smarty_core_get_microtime($_params, $this);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ function smarty_core_process_cached_inserts($params, &$this)
|
||||
|
||||
if (isset($args['script'])) {
|
||||
$_params = array('resource_name' => $this->_dequote($args['script']));
|
||||
require_once(SMARTY_DIR . 'core/core.get_php_resource.php');
|
||||
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_php_resource.php');
|
||||
if(!smarty_core_get_php_resource($_params, $this)) {
|
||||
return false;
|
||||
}
|
||||
@@ -50,7 +50,7 @@ function smarty_core_process_cached_inserts($params, &$this)
|
||||
$params['results'] = str_replace($cached_inserts[$i], $replace, $params['results']);
|
||||
if ($this->debugging) {
|
||||
$_params = array();
|
||||
require_once(SMARTY_DIR . 'core/core.get_microtime.php');
|
||||
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php');
|
||||
$this->_smarty_debug_info[] = array('type' => 'insert',
|
||||
'filename' => 'insert_'.$name,
|
||||
'depth' => $this->_inclusion_depth,
|
||||
|
||||
Reference in New Issue
Block a user