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.

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to