On Mon, 01 Oct 2012 04:39:59 -0700, jidanni@jidanni.org wrote:
Something changed this month in git making this not work anymore,
function JidanniLessRedNavigation($sktemplate,$links){ foreach($links['namespaces'] as $ns=>&$value){ if($value['context']=='talk' && $value['class']=='new' && !$sktemplate->getTitle()->quickUserCan('createtalk')){ unset($links['namespaces'][$ns]);} if($ns=='category' && $value['class']=='selected new'){ $value['class']='selected'; if(isset($links['actions']['watch'])){unset($links['actions']['watch']);}}} return true;} $wgHooks['SkinTemplateNavigation'][]='JidanniLessRedNavigation';
Maybe I should just give up on trying to use this as the internals it depends on keep on getting changed.
Wait, all you've been doing this tim is removing redlinks... why don't you just use css for that?