mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
*** empty log message ***
This commit is contained in:
@@ -88,13 +88,13 @@ class Config_File extends PEAR {
|
||||
*/
|
||||
function set_path($config_path)
|
||||
{
|
||||
if (!is_string($config_path) ||
|
||||
(!is_dir($config_path))) {
|
||||
return new Config_File_Error("Bad config file path '$config_path'");
|
||||
}
|
||||
if (!empty($config_path)) {
|
||||
if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
|
||||
return new Config_File_Error("Bad config file path '$config_path'");
|
||||
}
|
||||
|
||||
if ($config_path != "")
|
||||
$this->_config_path = $config_path . $this->_separator;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -88,13 +88,13 @@ class Config_File extends PEAR {
|
||||
*/
|
||||
function set_path($config_path)
|
||||
{
|
||||
if (!is_string($config_path) ||
|
||||
(!is_dir($config_path))) {
|
||||
return new Config_File_Error("Bad config file path '$config_path'");
|
||||
}
|
||||
if (!empty($config_path)) {
|
||||
if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
|
||||
return new Config_File_Error("Bad config file path '$config_path'");
|
||||
}
|
||||
|
||||
if ($config_path != "")
|
||||
$this->_config_path = $config_path . $this->_separator;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user