http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76219
Revision: 76219
Author: jeroendedauw
Date: 2010-11-06 22:00:35 +0000 (Sat, 06 Nov 2010)
Log Message:
-----------
Threw out some redundant checks
Modified Paths:
--------------
trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php
trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php
Modified: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php 2010-11-06
20:53:34 UTC (rev 76218)
+++ trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php 2010-11-06
22:00:35 UTC (rev 76219)
@@ -262,20 +262,11 @@
$wgHooks['ParserFirstCallInit'][] = 'smwfRegisterParserFunctions';
if ( $smwgToolboxBrowseLink ) {
- if ( version_compare( $wgVersion, '1.13', '>=' ) ) {
- $wgHooks['SkinTemplateToolboxEnd'][] =
'smwfShowBrowseLink'; // introduced only in 1.13
- } else {
- $wgHooks['MonoBookTemplateToolboxEnd'][] =
'smwfShowBrowseLink';
- }
+ $wgHooks['SkinTemplateToolboxEnd'][] = 'smwfShowBrowseLink';
}
- if ( version_compare( $wgVersion, '1.14alpha', '>=' ) ) {
- $wgHooks['SkinAfterContent'][] =
'SMWFactbox::onSkinAfterContent'; // draw Factbox below categories
- $smwgMW_1_14 = true; // assume latest 1.14 API
- } else {
- $wgHooks['OutputPageBeforeHTML'][] =
'SMWFactbox::onOutputPageBeforeHTML'; // draw Factbox right below page content
- $smwgMW_1_14 = false; // assume <= 1.13 API
- }
+ $wgHooks['SkinAfterContent'][] = 'SMWFactbox::onSkinAfterContent'; //
draw Factbox below categories
+ $smwgMW_1_14 = true; // assume latest 1.14 API
// Registration of the extension credits, see Special:Version.
$wgExtensionCredits['semantic'][] = array(
Modified: trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php
2010-11-06 20:53:34 UTC (rev 76218)
+++ trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php
2010-11-06 22:00:35 UTC (rev 76219)
@@ -9,7 +9,7 @@
* If used, this file replaces SMW_Setup.php. The files are never used together
* since they define some functions of the same name.
*
- * SMWLight does not support versions of MediaWiki older than 1.14.0.
+ * SMWLight does not support versions of MediaWiki older than 1.15.0.
* @file
* @ingroup SMW
*/
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs