r34069 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34068‎ | r34069 | r34070 >
Date:12:48, 1 May 2008
Author:aaron
Status:old
Tags:
Comment:
* Rm extfunctions use
* Enlarge box
Modified paths:
  • /trunk/extensions/Cite/SpecialCite.php (modified) (history)
  • /trunk/extensions/Cite/SpecialCite_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Cite/SpecialCite_body.php
@@ -69,7 +69,7 @@
7070 wfElement( 'input',
7171 array(
7272 'type' => 'text',
73 - 'size' => 20,
 73+ 'size' => 30,
7474 'name' => 'page',
7575 'value' => is_object( $this->mTitle ) ? $this->mTitle->getPrefixedText() : ''
7676 ),
Index: trunk/extensions/Cite/SpecialCite.php
@@ -28,10 +28,9 @@
2929 $wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = 'wfSpecialCiteNav';
3030 $wgHooks['MonoBookTemplateToolboxEnd'][] = 'wfSpecialCiteToolbox';
3131
32 -if ( !function_exists( 'extAddSpecialPage' ) ) {
33 - require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
34 -}
35 -extAddSpecialPage( dirname(__FILE__) . '/SpecialCite_body.php', 'Cite', 'SpecialCite' );
 32+$dir = dirname(__FILE__) . '/';
 33+$wgSpecialPages['Cite'] = 'SpecialCite';
 34+$wgAutoloadClasses['SpecialCite'] = $dir . 'SpecialCite_body.php';
3635
3736 function wfSpecialCiteNav( &$skintemplate, &$nav_urls, &$oldid, &$revid ) {
3837 wfLoadExtensionMessages( 'SpecialCite' );

Status & tagging log