Little bug in admintheme.inc, line 1359 - not using standard "admin" directory

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
fredt
Forum Members
Forum Members
Posts: 144
Joined: Mon Jun 27, 2005 10:36 am

Little bug in admintheme.inc, line 1359 - not using standard "admin" directory

Post by fredt »

I'm using some "myadmin" directory rather than standard "admin" - this is set in the Config.php file.

So I got :
Warning: showheader(/home.2/cabinetc9/www2/lib/classes/../../admin/lang/en_US/admin.inc.php): failed to open stream: No such file or directory in /home.2/cabinetc9/www2/lib/classes/class.admintheme.inc.php on line 1359

Warning: showheader(): Failed opening '/home.2/cabinetc9/www2/lib/classes/../../admin/lang/en_US/admin.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home.2/cabinetc9/www2/lib/classes/class.admintheme.inc.php on line 1359
Because line 1359 says :
include($dirname.'/../../admin/lang/en_US/admin.inc.php');

Which I fixed with:
    $my_admin_dir = $this->cms->config['admin_dir'];
     include($dirname.'/../../'.$my_admin_dir.'/lang/en_US/admin.inc.php');

HTH !

... Can someone fix this is the code please ?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Little bug in admintheme.inc, line 1359 - not using standard "admin" directo

Post by tsw »

Fixed, thanks

please post bugs into the tracker in the future (its easier to keep up with :)
Locked

Return to “[locked] Installation, Setup and Upgrade”