add hook EditPage::showReadOnlyForm:initial (v 1.7.2)

Change-Id: I01a8547d0e1be02301d7a9967e04036a4125907d
This commit is contained in:
Pavel Astakhov 2014-08-27 17:53:51 +06:00
parent fd51de0222
commit 152360f8cc

View file

@ -15,7 +15,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This file is an extension to MediaWiki and thus not a valid entry point.' ); die( 'This file is an extension to MediaWiki and thus not a valid entry point.' );
} }
const EXT_CODEMIRROR_VERSION = '1.7.1'; const EXT_CODEMIRROR_VERSION = '1.7.2';
// Register this extension on Special:Version // Register this extension on Special:Version
$wgExtensionCredits['parserhook'][] = array( $wgExtensionCredits['parserhook'][] = array(
@ -34,6 +34,7 @@ $wgExtensionMessagesFiles['CodeMirror'] = __DIR__ . '/CodeMirror.i18n.php';
$wgAutoloadClasses['CodeMirrorHooks'] = __DIR__ . '/CodeMirror.hooks.php'; $wgAutoloadClasses['CodeMirrorHooks'] = __DIR__ . '/CodeMirror.hooks.php';
$wgHooks['EditPage::showEditForm:initial'][] = 'CodeMirrorHooks::onEditPageShowEditFormInitial'; $wgHooks['EditPage::showEditForm:initial'][] = 'CodeMirrorHooks::onEditPageShowEditFormInitial';
$wgHooks['EditPage::showReadOnlyForm:initial'][] = 'CodeMirrorHooks::onEditPageShowEditFormInitial';
$tpl = array( $tpl = array(
'localBasePath' => __DIR__ . '/resources', 'localBasePath' => __DIR__ . '/resources',