Browse Source

php - convert a failed blocks access to pblocks

master
kanoi 10 years ago committed by Con Kolivas
parent
commit
6a35a02c77
  1. 6
      pool/prime.php

6
pool/prime.php

@ -22,6 +22,7 @@ function process($p, $user, $menu)
$menu['Admin']['PPLNS'] = 'pplns'; $menu['Admin']['PPLNS'] = 'pplns';
$menu['Admin']['AllWork'] = 'allwork'; $menu['Admin']['AllWork'] = 'allwork';
} }
bp:
$page = ''; $page = '';
$n = ''; $n = '';
foreach ($menu as $item => $options) foreach ($menu as $item => $options)
@ -33,6 +34,11 @@ function process($p, $user, $menu)
$n = " - $name"; $n = " - $name";
} }
if ($page === '' and $p == 'blocks')
{
$p = 'pblocks';
goto bp;
}
if ($page === '') if ($page === '')
showPage($info, 'index', $menu, '', $user); showPage($info, 'index', $menu, '', $user);
else else

Loading…
Cancel
Save