Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()

This commit is contained in:
Chad Horohoe 2010-05-26 22:25:32 +00:00
parent 8aa9b275d2
commit 695d3db96e
3 changed files with 0 additions and 5 deletions

View file

@ -152,7 +152,6 @@ class Cite {
* @return string
*/
function ref( $str, $argv, $parser ) {
wfLoadExtensionMessages( 'Cite' );
if ( $this->mInCite ) {
return htmlspecialchars( "<ref>$str</ref>" );
} else {
@ -453,7 +452,6 @@ class Cite {
* @return string
*/
function references( $str, $argv, $parser ) {
wfLoadExtensionMessages( 'Cite' );
if ( $this->mInCite || $this->mInReferences ) {
if ( is_null( $str ) ) {
return htmlspecialchars( "<references/>" );

View file

@ -33,7 +33,6 @@ $wgSpecialPages['Cite'] = 'SpecialCite';
$wgAutoloadClasses['SpecialCite'] = $dir . 'SpecialCite_body.php';
function wfSpecialCiteNav( &$skintemplate, &$nav_urls, &$oldid, &$revid ) {
wfLoadExtensionMessages( 'SpecialCite' );
// check whether were in the right namespace, the $revid has the correct type and is not empty
// (what would mean that the current page doesnt exist)
if ( $skintemplate->mTitle->isContentPage() && $revid !== 0 && !empty( $revid ) )
@ -51,7 +50,6 @@ function wfSpecialCiteToolbox( &$skin ) {
global $wgUser;
if ( isset( $skin->data['nav_urls']['cite'] ) ) {
wfLoadExtensionMessages( 'SpecialCite' );
echo Html::rawElement(
'li',
array( 'id' => 't-cite' ),

View file

@ -15,7 +15,6 @@ class SpecialCite extends SpecialPage {
function execute( $par ) {
global $wgOut, $wgRequest, $wgUseTidy;
wfLoadExtensionMessages( 'SpecialCite' );
// Having tidy on causes whitespace and <pre> tags to
// be generated around the output of the CiteOutput