Index: trunk/extensions/SemanticMediaWiki/SMW_Settings.php |
— | — | @@ -23,7 +23,8 @@ |
24 | 24 | # web. Change it if required ($wgScriptPath is the path to the base directory |
25 | 25 | # of your wiki). No final slash. |
26 | 26 | ## |
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'; |
28 | 29 | ## |
29 | 30 | |
30 | 31 | ### |