r50363 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50362‎ | r50363 | r50364 >
Date:11:29, 9 May 2009
Author:jan
Status:deferred
Tags:
Comment:
Small changes
Modified paths:
  • /trunk/extensions/Poll/Poll.i18n.php (modified) (history)
  • /trunk/extensions/Poll/Poll.php (modified) (history)
  • /trunk/extensions/Poll/Poll_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Poll/Poll_body.php
@@ -1,5 +1,5 @@
22 <?php
3 -class MyExtension extends SpecialPage {
 3+class Poll extends SpecialPage {
44 function __construct() {
55 parent::__construct( 'Poll' );
66 wfLoadExtensionMessages('Poll');
@@ -11,7 +11,8 @@
1212 $this->setHeaders();
1313
1414 # Get request data from, e.g.
15 - $action = $wgRequest->getText('action');
16 -
 15+ $action = htmlentities($wgRequest->getText('action'));
 16+ $id = htmlentities($wgRequest->getText('id'));
 17+
1718 }
1819 }
Index: trunk/extensions/Poll/Poll.i18n.php
@@ -9,9 +9,11 @@
1010 $messages = array();
1111
1212 $messages['en'] = array(
 13+ 'poll' => 'Polls',
1314 'poll-desc' => 'Add a [[Special:Poll|specialpage]] to MediaWiki for useing polls in MediaWiki',
1415 );
1516
1617 $messages['de'] = array(
 18+ 'poll' => 'Umfragen',
1719 'poll-desc' => 'Erstellt eine [[Special:Poll|Spezialsite]], um Umfragen in MedaWiki zu nutzen',
1820 );
Index: trunk/extensions/Poll/Poll.php
@@ -8,7 +8,7 @@
99 * @ingroup Extensions
1010 * @author Jan Luca <jan@toolserver.org>
1111 * @version 0.0
12 - * @link http://www.mediawiki.org/wiki/User:Jan_Luca/Extension:TSPoll Documentation
 12+ * @link http://www.mediawiki.org/wiki/User:Jan_Luca/Extension:Poll2 Documentation
1313 * @license http://creativecommons.org/licenses/by-sa/3.0/ Attribution-Share Alike 3.0 Unported or later
1414 */
1515

Status & tagging log