r91056 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91055‎ | r91056 | r91057 >
Date:05:42, 29 June 2011
Author:yaron
Status:ok
Tags:
Comment:
Follow-up to r60201 - finished removing support for SMW < 1.4
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateProperty.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateProperty.php
@@ -49,13 +49,8 @@
5050 foreach ( $allowed_values_array as $i => $value ) {
5151 // replace beep back with comma, trim
5252 $value = str_replace( "\a", $sfgListSeparator, trim( $value ) );
53 - if ( method_exists( $smwgContLang, 'getPropertyLabels' ) ) {
54 - $prop_labels = $smwgContLang->getPropertyLabels();
55 - $text .= "\n* [[" . $prop_labels['_PVAL'] . "::$value]]";
56 - } else {
57 - $spec_props = $smwgContLang->getSpecialPropertiesArray();
58 - $text .= "\n* [[" . $spec_props[SMW_SP_POSSIBLE_VALUE] . "::$value]]";
59 - }
 53+ $prop_labels = $smwgContLang->getPropertyLabels();
 54+ $text .= "\n* [[" . $prop_labels['_PVAL'] . "::$value]]";
6055 }
6156 }
6257 return $text;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60201Removed support for SMW <1.4yaron05:01, 18 December 2009

Status & tagging log