CMS MADE SIMPLE FORGE

Random Image

 

[#10581] $root should use {root_path}

avatar
Created By: Chris leonberger (evoluzzer)
Date Submitted: Mon Jul 20 16:49:07 -0400 2015

Assigned To: Michel Koning (xKingx)
Version: None
CMSMS Version: 1.12
Severity: Minor
Resolution: None
State: Open
Summary:
$root should use {root_path}
Detailed Description:
HI.
 
in line 30 it starts with:

#Set default root path. Might be needed to change if hosting provider requires
so
          $root                   = '';

the better way is to use the config['root_path'] like this:
#Set default root path. Might be needed to change if hosting provider
requires so
          //$root                   = '';
          $gCms = cmsms();
	  $config = $gCms->GetConfig();
	  $root= $config['root_path'];


History