Index: branches/wmf/1.17wmf1/extensions/ContactPageFundraiser/SpecialContact.php |
— | — | @@ -40,20 +40,12 @@ |
41 | 41 | $nu = User::newFromName( $wgContactUser ); |
42 | 42 | $f = new EmailContactForm( $nu ); |
43 | 43 | |
44 | | - $form['fname'] = $wgRequest->getVal('fname'); |
45 | | - $form['lname'] = $wgRequest->getVal('lname'); |
46 | | - $form['orgname'] = $wgRequest->getVal('orgname'); |
47 | | - $form['jobname'] = $wgRequest->getVal('jobname'); |
48 | | - $form['urlname'] = $wgRequest->getVal('urlname'); |
| 44 | + $form['name'] = $wgRequest->getVal('name'); |
| 45 | + $form['age'] = $wgRequest->getVal('age'); |
49 | 46 | $form['email'] = $wgRequest->getVal('email'); |
50 | | - $form['telephone'] = $wgRequest->getVal('telephone'); |
51 | | - $form['other'] = $wgRequest->getVal('other'); |
52 | | - $form['url'] = $wgRequest->getVal('url'); |
53 | | - $form['country'] = $wgRequest->getVal('country'); |
54 | | - $form['citytown'] = $wgRequest->getVal('city-town'); |
55 | | - $form['provstat'] = $wgRequest->getVal('prov-state'); |
| 47 | + $form['location'] = $wgRequest->getVal('location'); |
56 | 48 | $form['story'] = $wgRequest->getVal('story'); |
57 | | - $form['followup'] = $wgRequest->getVal('follow-up'); |
| 49 | + $form['followup'] = $wgRequest->getVal('followup'); |
58 | 50 | |
59 | 51 | $text = ''; |
60 | 52 | foreach( $form as $key => $value) { |
— | — | @@ -81,7 +73,7 @@ |
82 | 74 | if ( "success" == $action ) { |
83 | 75 | wfDebug( "$fname: success.\n" ); |
84 | 76 | $f->showSuccess( ); |
85 | | - } else if ( "submit" == $action && $wgRequest->wasPosted() && $f->hasAllInfo() ) { |
| 77 | + } elseif ( "submit" == $action && $wgRequest->wasPosted() && $f->hasAllInfo() ) { |
86 | 78 | $token = $wgRequest->getVal( 'wpEditToken' ); |
87 | 79 | |
88 | 80 | if( $wgUser->isAnon() ) { |
— | — | @@ -96,7 +88,7 @@ |
97 | 89 | wfDebug( "$fname: bad token (".($wgUser->isAnon()?'anon':'user')."): $token\n" ); |
98 | 90 | $wgOut->addWikiText( wfMsg( 'sessionfailure' ) ); |
99 | 91 | $f->showForm(); |
100 | | - } else if ( !$f->passCaptcha() ) { |
| 92 | + } elseif ( !$f->passCaptcha() ) { |
101 | 93 | wfDebug( "$fname: captcha failed" ); |
102 | 94 | $wgOut->addWikiText( wfMsg( 'contactpage-captcha-failed' ) ); //TODO: provide a message for this! |
103 | 95 | $f->showForm(); |
— | — | @@ -147,7 +139,7 @@ |
148 | 140 | $captcha->action = 'contact'; |
149 | 141 | } |
150 | 142 | } |
151 | | - |
| 143 | + |
152 | 144 | function setText( $text ) { |
153 | 145 | $this->text = $text; |
154 | 146 | } |
— | — | @@ -255,7 +247,7 @@ |
256 | 248 | |
257 | 249 | function getCaptcha() { |
258 | 250 | global $wgCaptcha; |
259 | | - if ( !$this->useCaptcha() ) return ""; |
| 251 | + if ( !$this->useCaptcha() ) return ""; |
260 | 252 | |
261 | 253 | wfSetupSession(); #NOTE: make sure we have a session. May be required for captchas to work. |
262 | 254 | |
— | — | @@ -290,7 +282,7 @@ |
291 | 283 | if ( !$this->fromaddress ) { |
292 | 284 | $from = new MailAddress( $csender, $cname ); |
293 | 285 | } |
294 | | - else if ( $wgUserEmailUseReplyTo ) { |
| 286 | + elseif ( $wgUserEmailUseReplyTo ) { |
295 | 287 | $from = new MailAddress( $csender, $cname ); |
296 | 288 | $replyto = new MailAddress( $this->fromaddress, $this->fromname ); |
297 | 289 | } |
— | — | @@ -307,7 +299,7 @@ |
308 | 300 | if ( $this->fromname !== "" ) { |
309 | 301 | $subject = wfMsgForContent( "contactpage-subject-and-sender", $subject, $this->fromname ); |
310 | 302 | } |
311 | | - else if ( $this->fromaddress !== "" ) { |
| 303 | + elseif ( $this->fromaddress !== "" ) { |
312 | 304 | $subject = wfMsgForContent( "contactpage-subject-and-sender", $subject, $this->fromaddress ); |
313 | 305 | } |
314 | 306 | |
Property changes on: branches/wmf/1.17wmf1/extensions/ContactPageFundraiser/SpecialContact.php |
___________________________________________________________________ |
Deleted: eol-style:native |
315 | 307 | - properties |
Property changes on: branches/wmf/1.17wmf1/extensions/ContactPageFundraiser/install.settings |
___________________________________________________________________ |
Deleted: eol-style:native |
316 | 308 | - properties |
Index: branches/wmf/1.17wmf1/extensions/ContactPageFundraiser/ContactPage.alias.php |
— | — | @@ -6,150 +6,154 @@ |
7 | 7 | * @ingroup Extensions |
8 | 8 | */ |
9 | 9 | |
10 | | -$aliases = array(); |
| 10 | +$specialPageAliases = array(); |
11 | 11 | |
12 | 12 | /** English |
13 | 13 | * @author Jon Harald Søby |
14 | 14 | */ |
15 | | -$aliases['en'] = array( |
| 15 | +$specialPageAliases['en'] = array( |
16 | 16 | 'Contact' => array( 'Contact' ), |
17 | 17 | ); |
18 | 18 | |
19 | 19 | /** Arabic (العربية) |
20 | 20 | * @author Meno25 |
21 | 21 | */ |
22 | | -$aliases['ar'] = array( |
| 22 | +$specialPageAliases['ar'] = array( |
23 | 23 | 'Contact' => array( 'اتصال' ), |
24 | 24 | ); |
25 | 25 | |
26 | 26 | /** Egyptian Spoken Arabic (مصرى) |
27 | 27 | * @author Meno25 |
28 | 28 | */ |
29 | | -$aliases['arz'] = array( |
| 29 | +$specialPageAliases['arz'] = array( |
30 | 30 | 'Contact' => array( 'اتصال' ), |
31 | 31 | ); |
32 | 32 | |
33 | 33 | /** Assamese (অসমীয়া) */ |
34 | | -$aliases['as'] = array( |
| 34 | +$specialPageAliases['as'] = array( |
35 | 35 | 'Contact' => array( 'যোগাযোগ' ), |
36 | 36 | ); |
37 | 37 | |
38 | 38 | /** German (Deutsch) */ |
39 | | -$aliases['de'] = array( |
| 39 | +$specialPageAliases['de'] = array( |
40 | 40 | 'Contact' => array( 'Kontakt' ), |
41 | 41 | ); |
42 | 42 | |
43 | 43 | /** Finnish (Suomi) */ |
44 | | -$aliases['fi'] = array( |
| 44 | +$specialPageAliases['fi'] = array( |
45 | 45 | 'Contact' => array( 'Yhteystiedot' ), |
46 | 46 | ); |
47 | 47 | |
48 | 48 | /** Galician (Galego) */ |
49 | | -$aliases['gl'] = array( |
| 49 | +$specialPageAliases['gl'] = array( |
50 | 50 | 'Contact' => array( 'Contactar' ), |
51 | 51 | ); |
52 | 52 | |
53 | 53 | /** Hebrew (עברית) |
54 | 54 | * @author Rotem Liss |
55 | 55 | */ |
56 | | -$aliases['he'] = array( |
| 56 | +$specialPageAliases['he'] = array( |
57 | 57 | 'Contact' => array( 'יצירת_קשר' ), |
58 | 58 | ); |
59 | 59 | |
60 | 60 | /** Croatian (Hrvatski) */ |
61 | | -$aliases['hr'] = array( |
| 61 | +$specialPageAliases['hr'] = array( |
62 | 62 | 'Contact' => array( 'Kontakt' ), |
63 | 63 | ); |
64 | 64 | |
65 | 65 | /** Upper Sorbian (Hornjoserbsce) */ |
66 | | -$aliases['hsb'] = array( |
| 66 | +$specialPageAliases['hsb'] = array( |
67 | 67 | 'Contact' => array( 'Kontakt' ), |
68 | 68 | ); |
69 | 69 | |
70 | 70 | /** Haitian (Kreyòl ayisyen) */ |
71 | | -$aliases['ht'] = array( |
| 71 | +$specialPageAliases['ht'] = array( |
72 | 72 | 'Contact' => array( 'Kontak' ), |
73 | 73 | ); |
74 | 74 | |
75 | 75 | /** Hungarian (Magyar) */ |
76 | | -$aliases['hu'] = array( |
| 76 | +$specialPageAliases['hu'] = array( |
77 | 77 | 'Contact' => array( 'Kapcsolat' ), |
78 | 78 | ); |
79 | 79 | |
80 | 80 | /** Indonesian (Bahasa Indonesia) */ |
81 | | -$aliases['id'] = array( |
| 81 | +$specialPageAliases['id'] = array( |
82 | 82 | 'Contact' => array( 'Kontak' ), |
83 | 83 | ); |
84 | 84 | |
85 | 85 | /** Khmer (ភាសាខ្មែរ) */ |
86 | | -$aliases['km'] = array( |
| 86 | +$specialPageAliases['km'] = array( |
87 | 87 | 'Contact' => array( 'ទំនាក់ទំនង' ), |
88 | 88 | ); |
89 | 89 | |
90 | 90 | /** Luxembourgish (Lëtzebuergesch) */ |
91 | | -$aliases['lb'] = array( |
| 91 | +$specialPageAliases['lb'] = array( |
92 | 92 | 'Contact' => array( 'Kontakt' ), |
93 | 93 | ); |
94 | 94 | |
95 | 95 | /** Macedonian (Македонски) */ |
96 | | -$aliases['mk'] = array( |
| 96 | +$specialPageAliases['mk'] = array( |
97 | 97 | 'Contact' => array( 'Контакт' ), |
98 | 98 | ); |
99 | 99 | |
100 | 100 | /** Low German (Plattdüütsch) */ |
101 | | -$aliases['nds'] = array( |
| 101 | +$specialPageAliases['nds'] = array( |
102 | 102 | 'Contact' => array( 'Kuntakt' ), |
103 | 103 | ); |
104 | 104 | |
105 | 105 | /** Nedersaksisch (Nedersaksisch) */ |
106 | | -$aliases['nds-nl'] = array( |
| 106 | +$specialPageAliases['nds-nl'] = array( |
107 | 107 | 'Contact' => array( 'Kontak' ), |
108 | 108 | ); |
109 | 109 | |
110 | 110 | /** Dutch (Nederlands) */ |
111 | | -$aliases['nl'] = array( |
| 111 | +$specialPageAliases['nl'] = array( |
112 | 112 | 'Contact' => array( 'Contactpagina' ), |
113 | 113 | ); |
114 | 114 | |
115 | 115 | /** Norwegian (bokmål) (Norsk (bokmål)) |
116 | 116 | * @author Jon Harald Søby |
117 | 117 | */ |
118 | | -$aliases['no'] = array( |
| 118 | +$specialPageAliases['no'] = array( |
119 | 119 | 'Contact' => array( 'Kontakt', 'Kontaktside' ), |
120 | 120 | ); |
121 | 121 | |
122 | 122 | /** Polish (Polski) */ |
123 | | -$aliases['pl'] = array( |
| 123 | +$specialPageAliases['pl'] = array( |
124 | 124 | 'Contact' => array( 'Kontakt' ), |
125 | 125 | ); |
126 | 126 | |
127 | 127 | /** Pashto (پښتو) */ |
128 | | -$aliases['ps'] = array( |
| 128 | +$specialPageAliases['ps'] = array( |
129 | 129 | 'Contact' => array( 'اړيکه، د اړيکو مخ' ), |
130 | 130 | ); |
131 | 131 | |
132 | 132 | /** Portuguese (Português) */ |
133 | | -$aliases['pt'] = array( |
| 133 | +$specialPageAliases['pt'] = array( |
134 | 134 | 'Contact' => array( 'Contactar', 'Contatar' ), |
135 | 135 | ); |
136 | 136 | |
137 | 137 | /** Brazilian Portuguese (Português do Brasil) */ |
138 | | -$aliases['pt-br'] = array( |
| 138 | +$specialPageAliases['pt-br'] = array( |
139 | 139 | 'Contact' => array( 'Contactar', 'Contatar' ), |
140 | 140 | ); |
141 | 141 | |
142 | 142 | /** Swedish (Svenska) */ |
143 | | -$aliases['sv'] = array( |
| 143 | +$specialPageAliases['sv'] = array( |
144 | 144 | 'Contact' => array( 'Kontakt' ), |
145 | 145 | ); |
146 | 146 | |
147 | 147 | /** Tetum (Tetun) */ |
148 | | -$aliases['tet'] = array( |
| 148 | +$specialPageAliases['tet'] = array( |
149 | 149 | 'Contact' => array( 'Kontaktu' ), |
150 | 150 | ); |
151 | 151 | |
152 | 152 | /** Thai (ไทย) */ |
153 | | -$aliases['th'] = array( |
| 153 | +$specialPageAliases['th'] = array( |
154 | 154 | 'Contact' => array( 'ติดต่อ' ), |
155 | 155 | ); |
156 | 156 | |
| 157 | +/** |
| 158 | + * For backwards compatibility with MediaWiki 1.15 and earlier. |
| 159 | + */ |
| 160 | +$aliases =& $specialPageAliases; |
\ No newline at end of file |
Property changes on: branches/wmf/1.17wmf1/extensions/ContactPageFundraiser/ContactPage.i18n.php |
___________________________________________________________________ |
Deleted: eol-style:native |
157 | 161 | - properties |
Property changes on: branches/wmf/1.17wmf1/extensions/ContactPageFundraiser/README |
___________________________________________________________________ |
Deleted: eol-style:native |
158 | 162 | - properties |
Property changes on: branches/wmf/1.17wmf1/extensions/ContactPageFundraiser |
___________________________________________________________________ |
Deleted: eol-style:native |
159 | 163 | - properties |
Modified: svn:mergeinfo |
160 | 164 | Merged /trunk/extensions/ContactPageFundraiser:r77974-92651 |