https://bugzilla.wikimedia.org/show_bug.cgi?id=17963
jida...@jidanni.org changed: What |Removed |Added ---------------------------------------------------------------------------- Version|1.15-svn |1.17-svn --- Comment #8 from jida...@jidanni.org 2010-11-21 22:52:40 UTC --- (In reply to comment #6) > function JidanniLessRedContentActions($sktemplate,$content_actions) OK, I finally figured out how to do that in Vector. For the record here it is: function JidanniLessRedContentActionsVectorTypeSkins($sktemplate,$links){ if(isset($links['namespaces']['talk']['class'])&& 'new'==$links['namespaces']['talk']['class']&& !$sktemplate->mTitle->quickUserCan('createtalk')){ unset($links['namespaces']['talk']); if(isset($links['actions']['watch'])){unset($links['actions']['watch']);};}; if(isset($links['namespaces']['category_talk']['class'])&& 'new'==$links['namespaces']['category_talk']['class']&& !$sktemplate->mTitle->quickUserCan('createtalk')){ unset($links['namespaces']['category_talk']); if(isset($links['actions']['watch'])){unset($links['actions']['watch']);};}; if(isset($links['namespaces']['category']['class'])&& 'selected new'==$links['namespaces']['category']['class']){ $links['namespaces']['category']['class']='selected';} return true;} $wgHooks['SkinTemplateNavigation'][]='JidanniLessRedContentActionsVectorTypeSkins';} Odd that when one uses vector, both hooks mention above get run... -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l