xoops forums


Just can't stay away
Posted on: 2010/4/1 17:59
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2

Re: Defacer 1.0 alpha is released for feature requests

Hey trabis

Long time

Found a bug and a fix in defacer.
When I had more then 15 Meta pages - the "Meta Manager" got blank (right after the tabs) ... a few tests showed it was the "$metacount" function at /admin/admin_meta.php which calls a missing file ( include_once XOOPS_ROOT_PATH.'/class/metanav.php )

Here is the fix (with the original lines eliminated by the "//TZ")
lines 59 - 68 at my "/admin/admin_meta.php" version

if ($metacount 0){
        if (
$metacount $limit) {
//TZ            include_once XOOPS_ROOT_PATH.'/class/metanav.php';
//TZ            $nav = new XoopsmetaNav($metacount, $limit, $start, 'start', 'op=list');
//TZ            $xoopsTpl->assign('pag','<div style="float:left; padding-top:2px;" align="center">'.$nav->renderNav().'</div>');
include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
$nav = new XoopsPageNav($metacount$limit$start'start''op=list');
$xoopsTpl->assign('pag','<div style="float:left; padding-top:2px;" align="center">'.$nav->renderNav().'</div>');

Hope it'll be of use for someone ....

There's probably a need to see if the same bug exist in the "Theme manager" and in the "Permission Manager" - I havn't reached 16th in there .... so I don't know ....