Index: trunk/extensions/Poll/Poll_body.php |
— | — | @@ -15,13 +15,13 @@ |
16 | 16 | $action = htmlentities( $wgRequest->getText( 'action' ) ); |
17 | 17 | $id = htmlentities( $wgRequest->getText( 'id' ) ); |
18 | 18 | |
19 | | - if($action == "create") { |
20 | | - $this->create(); |
21 | | - } |
22 | | - |
23 | | - if($action == "vote") { |
24 | | - $this->vote(); |
25 | | - } |
| 19 | + if ( $action == "create" ) { |
| 20 | + $this->create(); |
| 21 | + } |
| 22 | + |
| 23 | + if ( $action == "vote" ) { |
| 24 | + $this->vote(); |
| 25 | + } |
26 | 26 | } |
27 | 27 | |
28 | 28 | public function create() { |
— | — | @@ -29,12 +29,12 @@ |
30 | 30 | |
31 | 31 | $wgOut->setPagetitle( wfMsg( 'poll-title-create' ) ); |
32 | 32 | |
33 | | - $controll_create_right = $wgUser->isAllowed('poll-create'); |
| 33 | + $controll_create_right = $wgUser->isAllowed( 'poll-create' ); |
34 | 34 | $controll_create_blocked = $wgUser->isBlocked(); |
35 | | - if( $controll_create_right != true ) { |
| 35 | + if ( $controll_create_right != true ) { |
36 | 36 | $wgOut->addWikiMsg( 'poll-create-right-error' ); |
37 | 37 | } |
38 | | - elseif( $controll_create_blocked == true ) { |
| 38 | + elseif ( $controll_create_blocked == true ) { |
39 | 39 | $wgOut->addWikiMsg( 'poll-create-block-error' ); |
40 | 40 | } |
41 | 41 | else { |
— | — | @@ -47,12 +47,12 @@ |
48 | 48 | |
49 | 49 | $wgOut->setPagetitle( wfMsg( 'poll-title-vote' ) ); |
50 | 50 | |
51 | | - $controll_create_right = $wgUser->isAllowed('poll-vote'); |
| 51 | + $controll_create_right = $wgUser->isAllowed( 'poll-vote' ); |
52 | 52 | $controll_create_blocked = $wgUser->isBlocked(); |
53 | | - if( $controll_create_right != true ) { |
| 53 | + if ( $controll_create_right != true ) { |
54 | 54 | $wgOut->addWikiMsg( 'poll-vote-right-error' ); |
55 | 55 | } |
56 | | - elseif( $controll_create_blocked == true ) { |
| 56 | + elseif ( $controll_create_blocked == true ) { |
57 | 57 | $wgOut->addWikiMsg( 'poll-vote-block-error' ); |
58 | 58 | } |
59 | 59 | else { |
Index: trunk/extensions/Poll/Poll.i18n.php |
— | — | @@ -12,23 +12,23 @@ |
13 | 13 | $messages['en'] = array( |
14 | 14 | 'poll' => 'Polls', |
15 | 15 | 'poll-desc' => 'Add a [[Special:Poll|special page]] for using polls', |
16 | | - 'poll-title-create' => 'Create a new poll', |
17 | | - 'poll-title-vote' => 'Voting page', |
18 | | - 'poll-title-score' => 'Score', |
19 | | - 'poll-create-right-error' => 'You are not allowed to create a new poll(needed right: poll-create)', |
20 | | - 'poll-create-block-error' => 'You are not allowed to create a new poll because you use a blocked user', |
21 | | - 'poll-vote-right-error' => 'You are not allowed to vote(needed right: poll-vote)', |
22 | | - 'poll-vote-block-error' => 'You are not allowed to vote because you use a blocked user', |
| 16 | + 'poll-title-create' => 'Create a new poll', |
| 17 | + 'poll-title-vote' => 'Voting page', |
| 18 | + 'poll-title-score' => 'Score', |
| 19 | + 'poll-create-right-error' => 'You are not allowed to create a new poll(needed right: poll-create)', |
| 20 | + 'poll-create-block-error' => 'You are not allowed to create a new poll because you use a blocked user', |
| 21 | + 'poll-vote-right-error' => 'You are not allowed to vote(needed right: poll-vote)', |
| 22 | + 'poll-vote-block-error' => 'You are not allowed to vote because you use a blocked user', |
23 | 23 | ); |
24 | 24 | |
25 | 25 | $messages['de'] = array( |
26 | 26 | 'poll' => 'Umfragen', |
27 | 27 | 'poll-desc' => 'Erstellt eine [[Special:Poll|Spezialsite]], um Umfragen zu nutzen', |
28 | | - 'poll-title-create' => 'Eine neue Umfrage erstellen', |
29 | | - 'poll-title-vote' => 'Abstimmen', |
30 | | - 'poll-title-score' => 'Auswertung', |
31 | | - 'poll-create-right-error' => 'Leider darfst du keine neue Umfrage erstellen(ben�tige Gruppenberechttigung: poll-create)', |
32 | | - 'poll-create-block-error' => 'Leider darfst du keine neue Umfrage erstellen, weil du einen gesperten Benutzer benutzt', |
33 | | - 'poll-vote-right-error' => 'Leider darfst du nicht abstimmen(ben�tige Gruppenberechttigung: poll-vote)', |
34 | | - 'poll-vote-block-error' => 'Leider darfst du nicht abstimmen, weil du einen gesperten Benutzer benutzt', |
| 28 | + 'poll-title-create' => 'Eine neue Umfrage erstellen', |
| 29 | + 'poll-title-vote' => 'Abstimmen', |
| 30 | + 'poll-title-score' => 'Auswertung', |
| 31 | + 'poll-create-right-error' => 'Leider darfst du keine neue Umfrage erstellen(ben�tige Gruppenberechttigung: poll-create)', |
| 32 | + 'poll-create-block-error' => 'Leider darfst du keine neue Umfrage erstellen, weil du einen gesperten Benutzer benutzt', |
| 33 | + 'poll-vote-right-error' => 'Leider darfst du nicht abstimmen(ben�tige Gruppenberechttigung: poll-vote)', |
| 34 | + 'poll-vote-block-error' => 'Leider darfst du nicht abstimmen, weil du einen gesperten Benutzer benutzt', |
35 | 35 | ); |