admin_dir hardcoded in class.admintheme.inc.php

A place to discuss the testing process in beta cycles or against SVN for the CMS Made Simple CORE package.
Locked
tryl

admin_dir hardcoded in class.admintheme.inc.php

Post by tryl »

I just upgraded to 0.13 and got the following warnings in /admin/files.php

I'm actually using a custom admin_dir (set in config.php)

Code: Select all

Warning: showheader(/****/htdocs/lib/classes/../../admin/lang/en_US/admin.inc.php): failed to open stream: No such file or directory in /****/htdocs/lib/classes/class.admintheme.inc.php on line 1359

Warning: showheader(): Failed opening '/****/htdocs/lib/classes/../../admin/lang/en_US/admin.inc.php' for inclusion (include_path='.:') in /****/htdocs/lib/classes/class.admintheme.inc.php on line 1359
(**** is part of my web path on the server.)

I fixed it by replacing the line in question:

Code: Select all

include($dirname.'/../../admin/lang/en_US/admin.inc.php');
with

Code: Select all

include($dirname.'/../../'.$this->cms->config['admin_dir'].'/lang/en_US/admin.inc.php');
Locked

Return to “[locked] Quality Assurance”