Skip to content

Commit

Permalink
Use content model instead of NS, follow up to fe5fe26
Browse files Browse the repository at this point in the history
Change-Id: I29f8a81a84e1e9748a701482d91a903192520b09
  • Loading branch information
JeroenDeDauw committed Jun 28, 2012
1 parent eb3ee6f commit 7a6164e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo/Wikibase.hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public static function onWikibaseDefaultSettings( array &$settings ) {
* @return boolean
*/
public static function onPageTabs( SkinTemplate &$sktemplate, array &$links ) {
if ( $sktemplate->getTitle()->inNamespaces( WB_NS_DATA, WB_NS_DATA_TALK ) ) {
if ( in_array( $sktemplate->getTitle()->getContentModel(), array( CONTENT_MODEL_WIKIBASE_ITEM ) ) ) {
unset( $links['views']['edit'] );
}

Expand Down

0 comments on commit 7a6164e

Please sign in to comment.