r95886 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95885‎ | r95886 | r95887 >
Date:17:09, 31 August 2011
Author:yaron
Status:ok
Tags:
Comment:
Removed default form for namespace if page is a subpage
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormLinker.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormLinker.php
@@ -317,6 +317,14 @@
318318 return $default_forms;
319319 }
320320 }
 321+
 322+ // All that's left is checking for the namespace. If this is
 323+ // a subpage, exit out - default forms for namespaces don't
 324+ // apply to subpages.
 325+ if ( $title->isSubpage() ) {
 326+ return array();
 327+ }
 328+
321329 // If we're still here, just return the default form for the
322330 // namespace, which may well be null.
323331 if ( NS_MAIN === $namespace ) {

Status & tagging log