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:
@@ -233,8 +233,6 @@ class Config_File {
|
|||||||
*/
|
*/
|
||||||
function load_file($file_name, $prepend_path = true)
|
function load_file($file_name, $prepend_path = true)
|
||||||
{
|
{
|
||||||
global $php_errormsg;
|
|
||||||
|
|
||||||
if ($prepend_path && $this->_config_path != "")
|
if ($prepend_path && $this->_config_path != "")
|
||||||
$config_file = $this->_config_path . $file_name;
|
$config_file = $this->_config_path . $file_name;
|
||||||
else
|
else
|
||||||
@@ -243,7 +241,7 @@ class Config_File {
|
|||||||
ini_set('track_errors', true);
|
ini_set('track_errors', true);
|
||||||
$fp = @fopen($config_file, "r");
|
$fp = @fopen($config_file, "r");
|
||||||
if (!is_resource($fp)) {
|
if (!is_resource($fp)) {
|
||||||
$this->_trigger_error_msg($php_errormsg);
|
$this->_trigger_error_msg("Could not open config file '$config_file'");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -233,8 +233,6 @@ class Config_File {
|
|||||||
*/
|
*/
|
||||||
function load_file($file_name, $prepend_path = true)
|
function load_file($file_name, $prepend_path = true)
|
||||||
{
|
{
|
||||||
global $php_errormsg;
|
|
||||||
|
|
||||||
if ($prepend_path && $this->_config_path != "")
|
if ($prepend_path && $this->_config_path != "")
|
||||||
$config_file = $this->_config_path . $file_name;
|
$config_file = $this->_config_path . $file_name;
|
||||||
else
|
else
|
||||||
@@ -243,7 +241,7 @@ class Config_File {
|
|||||||
ini_set('track_errors', true);
|
ini_set('track_errors', true);
|
||||||
$fp = @fopen($config_file, "r");
|
$fp = @fopen($config_file, "r");
|
||||||
if (!is_resource($fp)) {
|
if (!is_resource($fp)) {
|
||||||
$this->_trigger_error_msg($php_errormsg);
|
$this->_trigger_error_msg("Could not open config file '$config_file'");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user