r73516 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73515‎ | r73516 | r73517 >
Date:12:13, 22 September 2010
Author:kwisatz
Status:deferred
Tags:
Comment:
Renamed QrCode class back to MwQrCode to prevent naming conflict with the libary class
Modified paths:
  • /trunk/extensions/QrCode/QrCode.php (modified) (history)

Diff [purge]

Index: trunk/extensions/QrCode/QrCode.php
@@ -22,7 +22,7 @@
2323 $wgExtensionCredits['parserhook'][] = array(
2424 'path' => __FILE__,
2525 'name' => 'QrCode',
26 - 'version' => '0.01',
 26+ 'version' => '0.02',
2727 'author' =>'David Raison',
2828 'url' => 'http://www.mediawiki.org/wiki/Extension:QrCode',
2929 'descriptionmsg' => 'qrcode-desc'
@@ -35,7 +35,7 @@
3636
3737 function efQrcodeSetup(){
3838 global $wgParser;
39 - $wgParser->setFunctionHook( 'qrcode', array(new QrCode, 'showCode' ));
 39+ $wgParser->setFunctionHook( 'qrcode', array(new MwQrCode, 'showCode' ));
4040 }
4141
4242 function wfQrCodeLanguageGetMagic( &$magicWords, $langCode='en' ) {
@@ -49,7 +49,7 @@
5050 $wgQrCodeBoundary = 2; // boundary around square
5151 $wgQrCodeBot = 'QrCodeBot';
5252
53 -class QrCode {
 53+class MwQrCode {
5454
5555 private $_dstFileName; // what the file will be named?
5656 private $_label; // What will the qrcode contain?

Status & tagging log