r107388 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107387‎ | r107388 | r107389 >
Date:15:54, 27 December 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
0.5 rel
Modified paths:
  • /trunk/extensions/SubPageList/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/SubPageList/SubPageList.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SubPageList/RELEASE-NOTES
@@ -5,9 +5,10 @@
66
77
88 === Version 0.5 ===
9 -2011-xx-xx
 9+2011-12-27
1010
11 -* Compatibility fix with MediaWiki 1.18 and later.
 11+* Added compatibility with MediaWiki 1.18 and 1.19.
 12+* Dropped compatibility with MediaWiki 1.15.
1213 * Added #subpagecount parser hook.
1314 * Fixed invalid HTML for ul and ol formats (bug 32131).
1415
Index: trunk/extensions/SubPageList/SubPageList.php
@@ -35,7 +35,7 @@
3636 die( '<b>Error:</b> You need to have <a href="http://www.mediawiki.org/wiki/Extension:Validator">Validator</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:SubPageList">SubPageList</a>.<br />' );
3737 }
3838
39 -define( 'SPL_VERSION', '0.5 alpha' );
 39+define( 'SPL_VERSION', '0.5' );
4040
4141 $wgExtensionCredits['parserhook'][] = array(
4242 'path' => __FILE__,
@@ -52,16 +52,13 @@
5353 $egSPLIP = dirname( __FILE__ );
5454
5555 $wgExtensionMessagesFiles['SubPageList'] = $egSPLIP . '/SubPageList.i18n.php';
 56+$wgExtensionMessagesFiles['SubPageListMagic'] = $egSPLIP . '/SubPageList.i18n.magic.php';
5657
5758 $wgAutoloadClasses['SubPageBase'] = $egSPLIP . '/SubPageBase.class.php';
5859 $wgAutoloadClasses['SubPageList'] = $egSPLIP . '/SubPageList.class.php';
5960 $wgAutoloadClasses['SubPageCount'] = $egSPLIP . '/SubPageCount.class.php';
6061 $wgAutoloadClasses['SPLHooks'] = $egSPLIP . '/SubPageList.hooks.php';
6162
62 -if ( version_compare( $wgVersion, '1.16alpha', '>=' ) ) {
63 - $wgExtensionMessagesFiles['SubPageListMagic'] = $egSPLIP . '/SubPageList.i18n.magic.php';
64 -}
65 -
6663 $wgHooks['ParserFirstCallInit'][] = 'SubPageList::staticInit';
6764 $wgHooks['LanguageGetMagic'][] = 'SubPageList::staticMagic';
6865 $wgHooks['ParserFirstCallInit'][] = 'SubPageCount::staticInit';

Status & tagging log