https://bugzilla.wikimedia.org/show_bug.cgi?id=7897
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |8812 Component|Page rendering |Categories OS/Version|Linux |All Platform|PC |All Version|1.7.1 |1.16-svn --- Comment #5 from [email protected] 2009-05-28 02:24:55 UTC --- For the record, here's my ultimate category clampdown, for wikis who want all categories empty of text, but with members. See http://jidanni.org/comp/wiki/article-category.html >$wgNamespaceProtection[NS_CATEGORY]=$wgNamespaceProtection[NS_CATEGORY_TALK]=array('editinterface'); >function >JidanniBlueLinkCategoryPages($linker,$target,&$text,&$customAttribs,&$query,&$options){ > switch($target->mNamespace){case NS_CATEGORY:case > NS_CATEGORY_TALK:$options[0]='known';}return true;} >$wgHooks['LinkBegin'][]='JidanniBlueLinkCategoryPages'; >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 JidanniLessRedContentActions($sktemplate,$content_actions){ > > if('new'==$content_actions['talk']['class']&&!$sktemplate->mTitle->quickUserCan('createtalk')){ > unset($content_actions['talk']); > unset($content_actions['watch']);} > if('selected new'==$content_actions['nstab-category']['class']){ > $content_actions['nstab-category']['class']='selected';} > return true;} >$wgHooks['SkinTemplateTabs'][]='JidanniLessRedContentActions';# Bug 17963 -- 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 [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
