Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByProperty.php |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | * @return string HTML with the navigation bar |
208 | 208 | */ |
209 | 209 | private function getNavigationBar( $count ) { |
210 | | - global $wgUser, $smwgQMaxInlineLimit, $smwgMW_1_14; |
| 210 | + global $wgUser, $smwgQMaxInlineLimit; |
211 | 211 | $skin = $wgUser->getSkin(); |
212 | 212 | |
213 | 213 | if ( $this->offset > 0 ) |
— | — | @@ -229,7 +229,7 @@ |
230 | 230 | $navigation .= '        ('; |
231 | 231 | $first = false; |
232 | 232 | } else { |
233 | | - $navigation .= ' ' . ( $smwgMW_1_14 ? wfMsgExt( 'pipe-separator' , 'escapenoentities' ):'|' ) . ' '; |
| 233 | + $navigation .= ' ' . wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . ' '; |
234 | 234 | } |
235 | 235 | if ( $l > $smwgQMaxInlineLimit ) { |
236 | 236 | $l = $smwgQMaxInlineLimit; |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php |
— | — | @@ -149,7 +149,7 @@ |
150 | 150 | * @todo FIXME: Some job generations here might create too many jobs at once on a large wiki. Use incremental jobs instead. |
151 | 151 | */ |
152 | 152 | static public function storeData( $parseroutput, Title $title, $makejobs = true ) { |
153 | | - global $smwgEnableUpdateJobs, $wgContLang, $smwgMW_1_14, $smwgDeclarationProperties; |
| 153 | + global $smwgEnableUpdateJobs, $wgContLang, $smwgDeclarationProperties; |
154 | 154 | |
155 | 155 | $semdata = $parseroutput->mSMWData; |
156 | 156 | $namespace = $title->getNamespace(); |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | $pmdat = new SMWDIProperty( '_MDAT' ); |
165 | 165 | |
166 | 166 | if ( count( $semdata->getPropertyValues( $pmdat ) ) == 0 ) { // no article data present yet, add it here |
167 | | - $timestamp = $smwgMW_1_14 ? Revision::getTimeStampFromID( $title, $title->getLatestRevID() ) : Revision::getTimeStampFromID( $title->getLatestRevID() ); |
| 167 | + $timestamp = Revision::getTimeStampFromID( $title, $title->getLatestRevID() ); |
168 | 168 | $di = self::getDataItemFromMWTimestamp( $timestamp ); |
169 | 169 | if ( $di !== null ) { |
170 | 170 | $semdata->addPropertyObjectValue( $pmdat, $di ); |
Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_ExportController.php |
— | — | @@ -371,7 +371,6 @@ |
372 | 372 | * functionality. Is anybody using this? |
373 | 373 | */ |
374 | 374 | public function printPages( $pages, $recursion = 1, $revisiondate = false ) { |
375 | | - global $smwgMW_1_14; |
376 | 375 | wfProfileIn( "RDF::PrintPages" ); |
377 | 376 | |
378 | 377 | $linkCache =& LinkCache::singleton(); |
— | — | @@ -383,7 +382,7 @@ |
384 | 383 | $title = Title::newFromText( $page ); |
385 | 384 | if ( null === $title ) continue; // invalid title name given |
386 | 385 | if ( $revisiondate !== '' ) { // filter page list by revision date |
387 | | - $rev = $smwgMW_1_14 ? Revision::getTimeStampFromID( $title, $title->getLatestRevID() ) : Revision::getTimeStampFromID( $title->getLatestRevID() ); |
| 386 | + $rev = Revision::getTimeStampFromID( $title, $title->getLatestRevID() ); |
388 | 387 | if ( $rev < $revisiondate ) continue; |
389 | 388 | } |
390 | 389 | $st = new SMWSmallTitle(); |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php |
— | — | @@ -261,7 +261,7 @@ |
262 | 262 | */ |
263 | 263 | function smwfSetupExtension() { |
264 | 264 | wfProfileIn( 'smwfSetupExtension (SMW)' ); |
265 | | - global $smwgIP, $wgHooks, $wgExtensionCredits, $smwgEnableTemplateSupport, $smwgMasterStore, $smwgIQRunningNumber, $wgLanguageCode, $wgVersion, $smwgToolboxBrowseLink, $smwgMW_1_14; |
| 265 | + global $smwgIP, $wgHooks, $wgExtensionCredits, $smwgEnableTemplateSupport, $smwgMasterStore, $smwgIQRunningNumber, $wgLanguageCode, $wgVersion, $smwgToolboxBrowseLink; |
266 | 266 | |
267 | 267 | $smwgMasterStore = null; |
268 | 268 | $smwgIQRunningNumber = 0; |
— | — | @@ -280,8 +280,6 @@ |
281 | 281 | $wgHooks['ArticleFromTitle'][] = 'smwfOnArticleFromTitle'; // special implementations for property/type articles |
282 | 282 | $wgHooks['ParserFirstCallInit'][] = 'smwfRegisterParserFunctions'; |
283 | 283 | |
284 | | - $smwgMW_1_14 = true; // assume latest 1.14 API |
285 | | - |
286 | 284 | wfProfileOut( 'smwfSetupExtension (SMW)' ); |
287 | 285 | return true; |
288 | 286 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php |
— | — | @@ -295,7 +295,7 @@ |
296 | 296 | */ |
297 | 297 | function smwfSetupExtension() { |
298 | 298 | wfProfileIn( 'smwfSetupExtension (SMW)' ); |
299 | | - global $smwgIP, $smwgScriptPath, $wgHooks, $wgFooterIcons, $wgExtensionCredits, $smwgEnableTemplateSupport, $smwgMasterStore, $smwgIQRunningNumber, $wgLanguageCode, $wgVersion, $smwgToolboxBrowseLink, $smwgMW_1_14; |
| 299 | + global $smwgIP, $smwgScriptPath, $wgHooks, $wgFooterIcons, $wgExtensionCredits, $smwgEnableTemplateSupport, $smwgMasterStore, $smwgIQRunningNumber, $wgLanguageCode, $wgVersion, $smwgToolboxBrowseLink; |
300 | 300 | |
301 | 301 | $smwgMasterStore = null; |
302 | 302 | $smwgIQRunningNumber = 0; |
— | — | @@ -324,7 +324,6 @@ |
325 | 325 | && $wgFooterIcons["poweredby"]["semanticmediawiki"]["src"] === null ) { |
326 | 326 | $wgFooterIcons["poweredby"]["semanticmediawiki"]["src"] = "$smwgScriptPath/skins/images/smw_button.png"; |
327 | 327 | } |
328 | | - $smwgMW_1_14 = true; // assume latest 1.14 API |
329 | 328 | |
330 | 329 | wfProfileOut( 'smwfSetupExtension (SMW)' ); |
331 | 330 | return true; |