Index: trunk/extensions/Poll/Poll_body.php |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | <?php |
3 | | -class MyExtension extends SpecialPage { |
| 3 | +class Poll extends SpecialPage { |
4 | 4 | function __construct() { |
5 | 5 | parent::__construct( 'Poll' ); |
6 | 6 | wfLoadExtensionMessages('Poll'); |
— | — | @@ -11,7 +11,8 @@ |
12 | 12 | $this->setHeaders(); |
13 | 13 | |
14 | 14 | # 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 | + |
17 | 18 | } |
18 | 19 | } |
Index: trunk/extensions/Poll/Poll.i18n.php |
— | — | @@ -9,9 +9,11 @@ |
10 | 10 | $messages = array(); |
11 | 11 | |
12 | 12 | $messages['en'] = array( |
| 13 | + 'poll' => 'Polls', |
13 | 14 | 'poll-desc' => 'Add a [[Special:Poll|specialpage]] to MediaWiki for useing polls in MediaWiki', |
14 | 15 | ); |
15 | 16 | |
16 | 17 | $messages['de'] = array( |
| 18 | + 'poll' => 'Umfragen', |
17 | 19 | 'poll-desc' => 'Erstellt eine [[Special:Poll|Spezialsite]], um Umfragen in MedaWiki zu nutzen', |
18 | 20 | ); |
Index: trunk/extensions/Poll/Poll.php |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | * @ingroup Extensions |
10 | 10 | * @author Jan Luca <jan@toolserver.org> |
11 | 11 | * @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 |
13 | 13 | * @license http://creativecommons.org/licenses/by-sa/3.0/ Attribution-Share Alike 3.0 Unported or later |
14 | 14 | */ |
15 | 15 | |