cvs: smarty /libs/plugins core.parse_file_path.php
| From: | Monte Ohrt | Date: | Fri, 06 Jun 2003 20:30:53 +0000 |
| Subject: | cvs: smarty /libs/plugins core.parse_file_path.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-629@lists.php.net to get a copy of this message | ||
mohrt Fri Jun 6 16:30:53 2003 EDT
Modified files:
/smarty/libs/plugins core.parse_file_path.php
Log:
fix problem with new default_resource_type changes
Index: smarty/libs/plugins/core.parse_file_path.php
diff -u smarty/libs/plugins/core.parse_file_path.php:1.2
smarty/libs/plugins/core.parse_file_path.php:1.3
--- smarty/libs/plugins/core.parse_file_path.php:1.2 Fri Jun 6 11:49:29 2003
+++ smarty/libs/plugins/core.parse_file_path.php Fri Jun 6 16:30:53 2003
@@ -30,16 +30,12 @@
} else {
if(strlen($_file_path_parts[0]) == 1) {
// 1 char is not resource type, but part of filepath
- $params['resource_type'] = $this->default_resource_type;
+ $params['resource_type'] = 'file';
$params['resource_name'] = $params['file_path'];
} else {
$params['resource_type'] = $_file_path_parts[0];
$params['resource_name'] = $_file_path_parts[1];
}
- if ($params['resource_type'] != 'file') {
- $_params = array('type' => $params['resource_type']);
- $this->_execute_core_function('load_resource_plugin', $_params);
- }
}
if ($params['resource_type'] == 'file') {
@@ -63,9 +59,11 @@
}
return false;
}
+ } else {
+ $_params = array('type' => $params['resource_type']);
+ $this->_execute_core_function('load_resource_plugin', $_params);
}
- // resource type != file
return true;
}