mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
* Rm extfunctions use
* Enlarge box
This commit is contained in:
parent
823764b9d4
commit
49005f3173
|
@ -28,10 +28,9 @@ $wgExtensionMessagesFiles['SpecialCite'] = dirname( __FILE__ ) . "/SpecialCite.i
|
||||||
$wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = 'wfSpecialCiteNav';
|
$wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = 'wfSpecialCiteNav';
|
||||||
$wgHooks['MonoBookTemplateToolboxEnd'][] = 'wfSpecialCiteToolbox';
|
$wgHooks['MonoBookTemplateToolboxEnd'][] = 'wfSpecialCiteToolbox';
|
||||||
|
|
||||||
if ( !function_exists( 'extAddSpecialPage' ) ) {
|
$dir = dirname(__FILE__) . '/';
|
||||||
require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
|
$wgSpecialPages['Cite'] = 'SpecialCite';
|
||||||
}
|
$wgAutoloadClasses['SpecialCite'] = $dir . 'SpecialCite_body.php';
|
||||||
extAddSpecialPage( dirname(__FILE__) . '/SpecialCite_body.php', 'Cite', 'SpecialCite' );
|
|
||||||
|
|
||||||
function wfSpecialCiteNav( &$skintemplate, &$nav_urls, &$oldid, &$revid ) {
|
function wfSpecialCiteNav( &$skintemplate, &$nav_urls, &$oldid, &$revid ) {
|
||||||
wfLoadExtensionMessages( 'SpecialCite' );
|
wfLoadExtensionMessages( 'SpecialCite' );
|
||||||
|
|
|
@ -69,7 +69,7 @@ class CiteForm {
|
||||||
wfElement( 'input',
|
wfElement( 'input',
|
||||||
array(
|
array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'size' => 20,
|
'size' => 30,
|
||||||
'name' => 'page',
|
'name' => 'page',
|
||||||
'value' => is_object( $this->mTitle ) ? $this->mTitle->getPrefixedText() : ''
|
'value' => is_object( $this->mTitle ) ? $this->mTitle->getPrefixedText() : ''
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue