Page 1 of 1

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

Posted: Tue May 30, 2006 1:44 pm
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 ?

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

Posted: Tue May 30, 2006 2:16 pm
by tsw
Fixed, thanks

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