All this now needs to be revised too.
function JidanniDontInviteEdit(&$article,&$outputDone){if($article->getID()===0){ switch($article->mTitle->getNamespace()){case NS_CATEGORY:case NS_CATEGORY_TALK:$outputDone=true;}}return true;} $wgHooks['ArticleViewHeader'][]='JidanniDontInviteEdit';//Bug 17630 function JidanniLessRedNavigation($sktemplate,$links){ // var_dump('BEFORE',$links); foreach($links['namespaces'] as $ns=>&$value){ if($value['context']=='talk' && $value['class']=='new' && !$sktemplate->mTitle->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']);}}} //var_dump('AFTER',$links); return true;} $wgHooks['SkinTemplateNavigation'][]='JidanniLessRedNavigation';
And who knows what will happen if some other skin. No imagine what will happen ten years later when I am ten years older and still have to maintain this with even 'less cells to spare upstairs' (in the brain.)