Quote:
Originally Posted by AriaAmberkinz
Could you post a more detailed version of what you did, Dinocanid? I seem to be having the same issue.
|
On a fresh install, there's this code under "public function initialize" in class_language.php:
PHP Code:
public function initialize(){
$globallangfile = "{$this->dir}lang/lang_global.php";
require $globallangfile;
$this->global = new ArrayObject($lang, ArrayObject::ARRAY_AS_PROPS);
}
I changed it so I defined the path myself, like this:
PHP Code:
public function initialize(){
$this->root = "/home/foodbabs/public_html/";
$globallangfile = "{$this->root}lang/lang_global.php";
require $globallangfile;
$this->global = new ArrayObject($lang, ArrayObject::ARRAY_AS_PROPS);
}
In class_mysidia.php, I replaced "public function getTemplate()" with this:
PHP Code:
public function getTemplate(){
$this->root = "/home/foodbabs/public_html/";
$templateClass = "{$this->root}inc/smarty/Smarty.class.php";
require $templateClass;
$this->template = new Template($this->path);
Registry::set(new String("template"), $this->template, TRUE, TRUE);
return $this->template;
}
So I added my own path based on the home directory, that way it doesn't forget where things are for some reason.