From 112c5d01f485d63337513787154c42947fafb929 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 16 Jan 2015 20:22:09 +1100 Subject: [PATCH] php - convert a failed blocks access to pblocks --- pool/prime.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pool/prime.php b/pool/prime.php index 529e0438..2ac16d2e 100644 --- a/pool/prime.php +++ b/pool/prime.php @@ -22,6 +22,7 @@ function process($p, $user, $menu) $menu['Admin']['PPLNS'] = 'pplns'; $menu['Admin']['AllWork'] = 'allwork'; } +bp: $page = ''; $n = ''; foreach ($menu as $item => $options) @@ -33,6 +34,11 @@ function process($p, $user, $menu) $n = " - $name"; } + if ($page === '' and $p == 'blocks') + { + $p = 'pblocks'; + goto bp; + } if ($page === '') showPage($info, 'index', $menu, '', $user); else