r67495 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67494‎ | r67495 | r67496 >
Date:00:52, 7 June 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r67451
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/SMW_Settings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/SMW_Settings.php
@@ -23,7 +23,8 @@
2424 # web. Change it if required ($wgScriptPath is the path to the base directory
2525 # of your wiki). No final slash.
2626 ##
27 -$smwgScriptPath = ( isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath ? $wgExtensionAssetsPath : $wgScriptPath . '/extensions' ) . '/SemanticMediaWiki';
 27+$useExtensionPath = version_compare( $wgVersion, '1.16', '>=' ) && isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath;
 28+$smwgScriptPath = ( $useExtensionPath ? $wgExtensionAssetsPath : $wgScriptPath . '/extensions' ) . '/SemanticMediaWiki';
2829 ##
2930
3031 ###

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r67451Use of $wgExtensionAssetsPathjeroendedauw10:26, 6 June 2010

Status & tagging log