mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 02:04:02 +00:00
add hook EditPage::showReadOnlyForm:initial (v 1.7.2)
Change-Id: I01a8547d0e1be02301d7a9967e04036a4125907d
This commit is contained in:
parent
fd51de0222
commit
152360f8cc
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue