mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
put SMARTY_DIR on Config_File require
This commit is contained in:
@@ -548,7 +548,7 @@ class Smarty
|
|||||||
if ($this->_conf_obj === null) {
|
if ($this->_conf_obj === null) {
|
||||||
/* Prepare the configuration object. */
|
/* Prepare the configuration object. */
|
||||||
if (!class_exists('Config_File'))
|
if (!class_exists('Config_File'))
|
||||||
include_once 'Config_File.class.php';
|
include_once SMARTY_DIR.'Config_File.class.php';
|
||||||
$this->_conf_obj = new Config_File($this->config_dir);
|
$this->_conf_obj = new Config_File($this->config_dir);
|
||||||
} else
|
} else
|
||||||
$this->_conf_obj->set_path($this->config_dir);
|
$this->_conf_obj->set_path($this->config_dir);
|
||||||
|
@@ -4084,7 +4084,7 @@ OUTPUT:
|
|||||||
{popup_init}
|
{popup_init}
|
||||||
|
|
||||||
{* create a link with a popup window when you move your mouse over *}
|
{* create a link with a popup window when you move your mouse over *}
|
||||||
<A href="mypage.html" {popup text="This link takes you to my page!}>mypage</A>
|
<A href="mypage.html" {popup text="This link takes you to my page!"}>mypage</A>
|
||||||
|
|
||||||
{* you can use html, links, etc in your popup text *}
|
{* you can use html, links, etc in your popup text *}
|
||||||
<A href="mypage.html" {popup sticky=true caption="mypage contents"
|
<A href="mypage.html" {popup sticky=true caption="mypage contents"
|
||||||
|
@@ -548,7 +548,7 @@ class Smarty
|
|||||||
if ($this->_conf_obj === null) {
|
if ($this->_conf_obj === null) {
|
||||||
/* Prepare the configuration object. */
|
/* Prepare the configuration object. */
|
||||||
if (!class_exists('Config_File'))
|
if (!class_exists('Config_File'))
|
||||||
include_once 'Config_File.class.php';
|
include_once SMARTY_DIR.'Config_File.class.php';
|
||||||
$this->_conf_obj = new Config_File($this->config_dir);
|
$this->_conf_obj = new Config_File($this->config_dir);
|
||||||
} else
|
} else
|
||||||
$this->_conf_obj->set_path($this->config_dir);
|
$this->_conf_obj->set_path($this->config_dir);
|
||||||
|
Reference in New Issue
Block a user