Commit 21aa831f authored by Nigel McNie's avatar Nigel McNie Committed by Penny Leach
Browse files

Made the self search box appear only in the portfolio section

parent 56f451bd
......@@ -285,14 +285,15 @@ EOF;
);
}
if ($USER->is_logged_in()) {
if ($USER->is_logged_in() && defined('MENUITEM') && substr(MENUITEM, 0, 11) == 'myportfolio') {
$SIDEBLOCKS[] = array(
'name' => 'selfsearch',
'weight' => 0,
'data' => array(),
);
}
else {
if (!$USER->is_logged_in()) {
$SIDEBLOCKS[] = array(
'name' => 'login',
'weight' => -10,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment