View Single Post
  #8  
Old 01-25-2018, 07:52 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 63,636
Dinocanid is on a distinguished road
Default

Quote:
Originally Posted by AriaAmberkinz View Post
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($langArrayObject::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($langArrayObject::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->templateTRUETRUE);
        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.
__________________
Reply With Quote