Property changes on: branches/uploadwizard/phase3/index.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
1 | 1 | Merged /branches/REL1_15/phase3/index.php5:r51646 |
2 | 2 | Merged /branches/sqlite/index.php5:r58211-58321 |
3 | 3 | Merged /trunk/phase3/index.php5:r73549-73568 |
4 | 4 | Merged /branches/new-installer/phase3/index.php5:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/maintenance/tables.sql |
___________________________________________________________________ |
Modified: svn:mergeinfo |
5 | 5 | Merged /trunk/phase3/maintenance/tables.sql:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/maintenance/archives |
___________________________________________________________________ |
Modified: svn:mergeinfo |
6 | 6 | Merged /trunk/phase3/maintenance/archives:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/maintenance/populateRevisionLength.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
7 | 7 | Merged /trunk/phase3/maintenance/populateRevisionLength.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/maintenance/cleanupTable.inc |
___________________________________________________________________ |
Modified: svn:mergeinfo |
8 | 8 | Merged /trunk/phase3/maintenance/cleanupTable.inc:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/maintenance/deleteSelfExternals.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
9 | 9 | Merged /trunk/phase3/maintenance/deleteSelfExternals.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/maintenance/tests |
___________________________________________________________________ |
Modified: svn:mergeinfo |
10 | 10 | Merged /trunk/phase3/maintenance/tests:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/maintenance |
___________________________________________________________________ |
Added: svn:mergeinfo |
11 | 11 | Merged /branches/REL1_15/phase3/maintenance:r51646 |
12 | 12 | Merged /branches/sqlite/maintenance:r58211-58321 |
13 | 13 | Merged /trunk/phase3/maintenance:r73549-73568 |
14 | 14 | Merged /branches/new-installer/phase3/maintenance:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/img_auth.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
15 | 15 | Merged /branches/REL1_15/phase3/img_auth.php:r51646 |
16 | 16 | Merged /branches/sqlite/img_auth.php:r58211-58321 |
17 | 17 | Merged /trunk/phase3/img_auth.php:r73549-73568 |
18 | 18 | Merged /branches/new-installer/phase3/img_auth.php:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/api.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
19 | 19 | Merged /branches/new-installer/phase3/api.php5:r43664-66004 |
20 | 20 | Merged /branches/REL1_15/phase3/api.php5:r51646 |
21 | 21 | Merged /branches/sqlite/api.php5:r58211-58321 |
22 | 22 | Merged /trunk/phase3/api.php5:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/redirect.phtml |
___________________________________________________________________ |
Added: svn:mergeinfo |
23 | 23 | Merged /branches/new-installer/phase3/redirect.phtml:r43664-66004 |
24 | 24 | Merged /branches/REL1_15/phase3/redirect.phtml:r51646 |
25 | 25 | Merged /branches/sqlite/redirect.phtml:r58211-58321 |
26 | 26 | Merged /trunk/phase3/redirect.phtml:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/wiki.phtml |
___________________________________________________________________ |
Added: svn:mergeinfo |
27 | 27 | Merged /branches/new-installer/phase3/wiki.phtml:r43664-66004 |
28 | 28 | Merged /branches/REL1_15/phase3/wiki.phtml:r51646 |
29 | 29 | Merged /branches/sqlite/wiki.phtml:r58211-58321 |
30 | 30 | Merged /trunk/phase3/wiki.phtml:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/redirect.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
31 | 31 | Merged /branches/new-installer/phase3/redirect.php:r43664-66004 |
32 | 32 | Merged /branches/REL1_15/phase3/redirect.php:r51646 |
33 | 33 | Merged /branches/sqlite/redirect.php:r58211-58321 |
34 | 34 | Merged /trunk/phase3/redirect.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/php5.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
35 | 35 | Merged /branches/new-installer/phase3/php5.php5:r43664-66004 |
36 | 36 | Merged /branches/REL1_15/phase3/php5.php5:r51646 |
37 | 37 | Merged /branches/sqlite/php5.php5:r58211-58321 |
38 | 38 | Merged /trunk/phase3/php5.php5:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/UPGRADE |
___________________________________________________________________ |
Added: svn:mergeinfo |
39 | 39 | Merged /branches/new-installer/phase3/UPGRADE:r43664-66004 |
40 | 40 | Merged /branches/REL1_15/phase3/UPGRADE:r51646 |
41 | 41 | Merged /branches/sqlite/UPGRADE:r58211-58321 |
42 | 42 | Merged /trunk/phase3/UPGRADE:r73549-73568 |
Index: branches/uploadwizard/phase3/skins/vector/screen.css |
— | — | @@ -363,7 +363,10 @@ |
364 | 364 | font-size: 13px; |
365 | 365 | top: 0.25em; |
366 | 366 | } |
367 | | - div#simpleSearch .placeholder { |
| 367 | + div#simpleSearch input { |
| 368 | + color: black; |
| 369 | + } |
| 370 | + div#simpleSearch input.placeholder { |
368 | 371 | color: #999999; |
369 | 372 | } |
370 | 373 | div#simpleSearch input::-webkit-input-placeholder { |
Index: branches/uploadwizard/phase3/skins/common/ajaxwatch.js |
— | — | @@ -9,22 +9,20 @@ |
10 | 10 | } |
11 | 11 | |
12 | 12 | wgAjaxWatch.setLinkText = function( $link, action ) { |
13 | | - if( action == 'watch' || action == 'unwatch' ) { |
| 13 | + if ( action == 'watch' || action == 'unwatch' ) { |
14 | 14 | // save the accesskey from the title |
15 | | - var keyCommand = $link.attr( 'title' ).match( /\[.*?\]$/ ) |
16 | | - ? $link.attr( 'title' ).match( /\[.*?\]$/ )[0] |
17 | | - : ''; |
18 | | - $link.attr( 'title', mediaWiki.msg.get( 'tooltip-ca-' + action + 'Msg') + ' ' + keyCommand ); |
| 15 | + var keyCommand = $link.attr( 'title' ).match( /\[.*?\]$/ ) ? $link.attr( 'title' ).match( /\[.*?\]$/ )[0] : ''; |
| 16 | + $link.attr( 'title', mediaWiki.msg.get( 'tooltip-ca-' + action ) + ' ' + keyCommand ); |
19 | 17 | } |
20 | | - if( $link.data( 'icon' ) ) { |
21 | | - $link.attr( 'alt', mediaWiki.msg.get( action + 'Msg' ) ); |
| 18 | + if ( $link.data( 'icon' ) ) { |
| 19 | + $link.attr( 'alt', mediaWiki.msg.get( action ) ); |
22 | 20 | if ( action == 'watching' || action == 'unwatching' ) { |
23 | 21 | $link.addClass( 'loading' ); |
24 | 22 | } else { |
25 | 23 | $link.removeClass( 'loading' ); |
26 | 24 | } |
27 | 25 | } else { |
28 | | - $link.html( mediaWiki.msg.get( action + 'Msg' ) ); |
| 26 | + $link.html( mediaWiki.msg.get( action ) ); |
29 | 27 | } |
30 | 28 | }; |
31 | 29 | |
— | — | @@ -112,7 +110,7 @@ |
113 | 111 | if( $link.parents( 'li' ).attr( 'id' ) == 'ca-' + action ) { |
114 | 112 | $link.parents( 'li' ).attr( 'id', 'ca-' + otheraction ); |
115 | 113 | // update the link text with the new message |
116 | | - $link.text( mediaWiki.msg.get( otheraction + 'Msg' ) ); |
| 114 | + $link.text( mediaWiki.msg.get( otheraction ) ); |
117 | 115 | } |
118 | 116 | }; |
119 | 117 | return false; |
Property changes on: branches/uploadwizard/phase3/skins |
___________________________________________________________________ |
Added: svn:mergeinfo |
120 | 118 | Merged /branches/new-installer/phase3/skins:r43664-66004 |
121 | 119 | Merged /branches/REL1_15/phase3/skins:r51646 |
122 | 120 | Merged /branches/sqlite/skins:r58211-58321 |
123 | 121 | Merged /trunk/phase3/skins:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/thumb.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
124 | 122 | Merged /branches/sqlite/thumb.php5:r58211-58321 |
125 | 123 | Merged /trunk/phase3/thumb.php5:r73549-73568 |
126 | 124 | Merged /branches/new-installer/phase3/thumb.php5:r43664-66004 |
127 | 125 | Merged /branches/REL1_15/phase3/thumb.php5:r51646 |
Property changes on: branches/uploadwizard/phase3/serialized |
___________________________________________________________________ |
Added: svn:mergeinfo |
128 | 126 | Merged /branches/sqlite/serialized:r58211-58321 |
129 | 127 | Merged /trunk/phase3/serialized:r73549-73568 |
130 | 128 | Merged /branches/new-installer/phase3/serialized:r43664-66004 |
131 | 129 | Merged /branches/REL1_15/phase3/serialized:r51646 |
Property changes on: branches/uploadwizard/phase3/README |
___________________________________________________________________ |
Added: svn:mergeinfo |
132 | 130 | Merged /branches/sqlite/README:r58211-58321 |
133 | 131 | Merged /trunk/phase3/README:r73549-73568 |
134 | 132 | Merged /branches/new-installer/phase3/README:r43664-66004 |
135 | 133 | Merged /branches/REL1_15/phase3/README:r51646 |
Property changes on: branches/uploadwizard/phase3/CREDITS |
___________________________________________________________________ |
Added: svn:mergeinfo |
136 | 134 | Merged /branches/sqlite/CREDITS:r58211-58321 |
137 | 135 | Merged /trunk/phase3/CREDITS:r73549-73568 |
138 | 136 | Merged /branches/new-installer/phase3/CREDITS:r43664-66004 |
139 | 137 | Merged /branches/REL1_15/phase3/CREDITS:r51646 |
Property changes on: branches/uploadwizard/phase3/HISTORY |
___________________________________________________________________ |
Added: svn:mergeinfo |
140 | 138 | Merged /branches/REL1_15/phase3/HISTORY:r51646 |
141 | 139 | Merged /branches/sqlite/HISTORY:r58211-58321 |
142 | 140 | Merged /trunk/phase3/HISTORY:r73549-73568 |
143 | 141 | Merged /branches/new-installer/phase3/HISTORY:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/cache |
___________________________________________________________________ |
Added: svn:mergeinfo |
144 | 142 | Merged /branches/REL1_15/phase3/cache:r51646 |
145 | 143 | Merged /branches/sqlite/cache:r58211-58321 |
146 | 144 | Merged /trunk/phase3/cache:r73549-73568 |
147 | 145 | Merged /branches/new-installer/phase3/cache:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/config |
___________________________________________________________________ |
Added: svn:mergeinfo |
148 | 146 | Merged /branches/new-installer/phase3/config:r43664-66004 |
149 | 147 | Merged /branches/REL1_15/phase3/config:r51646 |
150 | 148 | Merged /branches/sqlite/config:r58211-58321 |
151 | 149 | Merged /trunk/phase3/config:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/load.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
152 | 150 | Merged /branches/new-installer/phase3/load.php:r43664-66004 |
153 | 151 | Merged /branches/REL1_15/phase3/load.php:r51646 |
154 | 152 | Merged /branches/sqlite/load.php:r58211-58321 |
155 | 153 | Merged /trunk/phase3/load.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/INSTALL |
___________________________________________________________________ |
Added: svn:mergeinfo |
156 | 154 | Merged /branches/new-installer/phase3/INSTALL:r43664-66004 |
157 | 155 | Merged /branches/REL1_15/phase3/INSTALL:r51646 |
158 | 156 | Merged /branches/sqlite/INSTALL:r58211-58321 |
159 | 157 | Merged /trunk/phase3/INSTALL:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/img_auth.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
160 | 158 | Merged /branches/new-installer/phase3/img_auth.php5:r43664-66004 |
161 | 159 | Merged /branches/REL1_15/phase3/img_auth.php5:r51646 |
162 | 160 | Merged /branches/sqlite/img_auth.php5:r58211-58321 |
163 | 161 | Merged /trunk/phase3/img_auth.php5:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/COPYING |
___________________________________________________________________ |
Added: svn:mergeinfo |
164 | 162 | Merged /branches/new-installer/phase3/COPYING:r43664-66004 |
165 | 163 | Merged /branches/REL1_15/phase3/COPYING:r51646 |
166 | 164 | Merged /branches/sqlite/COPYING:r58211-58321 |
167 | 165 | Merged /trunk/phase3/COPYING:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/bin |
___________________________________________________________________ |
Added: svn:mergeinfo |
168 | 166 | Merged /branches/new-installer/phase3/bin:r43664-66004 |
169 | 167 | Merged /branches/REL1_15/phase3/bin:r51646 |
170 | 168 | Merged /branches/sqlite/bin:r58211-58321 |
171 | 169 | Merged /trunk/phase3/bin:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/opensearch_desc.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
172 | 170 | Merged /branches/sqlite/opensearch_desc.php:r58211-58321 |
173 | 171 | Merged /trunk/phase3/opensearch_desc.php:r73549-73568 |
174 | 172 | Merged /branches/new-installer/phase3/opensearch_desc.php:r43664-66004 |
175 | 173 | Merged /branches/REL1_15/phase3/opensearch_desc.php:r51646 |
Property changes on: branches/uploadwizard/phase3/trackback.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
176 | 174 | Merged /branches/sqlite/trackback.php:r58211-58321 |
177 | 175 | Merged /trunk/phase3/trackback.php:r73549-73568 |
178 | 176 | Merged /branches/new-installer/phase3/trackback.php:r43664-66004 |
179 | 177 | Merged /branches/REL1_15/phase3/trackback.php:r51646 |
Property changes on: branches/uploadwizard/phase3/redirect.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
180 | 178 | Merged /branches/sqlite/redirect.php5:r58211-58321 |
181 | 179 | Merged /trunk/phase3/redirect.php5:r73549-73568 |
182 | 180 | Merged /branches/new-installer/phase3/redirect.php5:r43664-66004 |
183 | 181 | Merged /branches/REL1_15/phase3/redirect.php5:r51646 |
Property changes on: branches/uploadwizard/phase3/StartProfiler.sample |
___________________________________________________________________ |
Added: svn:mergeinfo |
184 | 182 | Merged /branches/REL1_15/phase3/StartProfiler.sample:r51646 |
185 | 183 | Merged /branches/sqlite/StartProfiler.sample:r58211-58321 |
186 | 184 | Merged /trunk/phase3/StartProfiler.sample:r73549-73568 |
187 | 185 | Merged /branches/new-installer/phase3/StartProfiler.sample:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/docs |
___________________________________________________________________ |
Added: svn:mergeinfo |
188 | 186 | Merged /branches/new-installer/phase3/docs:r43664-66004 |
189 | 187 | Merged /branches/REL1_15/phase3/docs:r51646 |
190 | 188 | Merged /branches/sqlite/docs:r58211-58321 |
191 | 189 | Merged /trunk/phase3/docs:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/math |
___________________________________________________________________ |
Added: svn:mergeinfo |
192 | 190 | Merged /branches/new-installer/phase3/math:r43664-66004 |
193 | 191 | Merged /branches/REL1_15/phase3/math:r51646 |
194 | 192 | Merged /branches/sqlite/math:r58211-58321 |
195 | 193 | Merged /trunk/phase3/math:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/load.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
196 | 194 | Merged /branches/sqlite/load.php5:r58211-58321 |
197 | 195 | Merged /trunk/phase3/load.php5:r73549-73568 |
198 | 196 | Merged /branches/new-installer/phase3/load.php5:r43664-66004 |
199 | 197 | Merged /branches/REL1_15/phase3/load.php5:r51646 |
Property changes on: branches/uploadwizard/phase3/index.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
200 | 198 | Merged /branches/sqlite/index.php:r58211-58321 |
201 | 199 | Merged /trunk/phase3/index.php:r73549-73568 |
202 | 200 | Merged /branches/new-installer/phase3/index.php:r43664-66004 |
203 | 201 | Merged /branches/REL1_15/phase3/index.php:r51646 |
Property changes on: branches/uploadwizard/phase3/api.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
204 | 202 | Merged /branches/sqlite/api.php:r58211-58321 |
205 | 203 | Merged /trunk/phase3/api.php:r73549-73568 |
206 | 204 | Merged /branches/new-installer/phase3/api.php:r43664-66004 |
207 | 205 | Merged /branches/REL1_15/phase3/api.php:r51646 |
Property changes on: branches/uploadwizard/phase3/opensearch_desc.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
208 | 206 | Merged /branches/REL1_15/phase3/opensearch_desc.php5:r51646 |
209 | 207 | Merged /branches/sqlite/opensearch_desc.php5:r58211-58321 |
210 | 208 | Merged /trunk/phase3/opensearch_desc.php5:r73549-73568 |
211 | 209 | Merged /branches/new-installer/phase3/opensearch_desc.php5:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/trackback.php5 |
___________________________________________________________________ |
Added: svn:mergeinfo |
212 | 210 | Merged /branches/REL1_15/phase3/trackback.php5:r51646 |
213 | 211 | Merged /branches/sqlite/trackback.php5:r58211-58321 |
214 | 212 | Merged /trunk/phase3/trackback.php5:r73549-73568 |
215 | 213 | Merged /branches/new-installer/phase3/trackback.php5:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/profileinfo.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
216 | 214 | Merged /branches/REL1_15/phase3/profileinfo.php:r51646 |
217 | 215 | Merged /branches/sqlite/profileinfo.php:r58211-58321 |
218 | 216 | Merged /trunk/phase3/profileinfo.php:r73549-73568 |
219 | 217 | Merged /branches/new-installer/phase3/profileinfo.php:r43664-66004 |
Property changes on: branches/uploadwizard/phase3/thumb.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
220 | 218 | Merged /branches/new-installer/phase3/thumb.php:r43664-66004 |
221 | 219 | Merged /branches/REL1_15/phase3/thumb.php:r51646 |
222 | 220 | Merged /branches/sqlite/thumb.php:r58211-58321 |
223 | 221 | Merged /trunk/phase3/thumb.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/images |
___________________________________________________________________ |
Added: svn:mergeinfo |
224 | 222 | Merged /branches/new-installer/phase3/images:r43664-66004 |
225 | 223 | Merged /branches/REL1_15/phase3/images:r51646 |
226 | 224 | Merged /branches/sqlite/images:r58211-58321 |
227 | 225 | Merged /trunk/phase3/images:r73549-73568 |
Index: branches/uploadwizard/phase3/RELEASE-NOTES |
— | — | @@ -57,11 +57,11 @@ |
58 | 58 | * $wgVectorExtraStyles was removed, and is no longer in use. |
59 | 59 | * $wgLoadScript was added to specify alternative locations for ResourceLoader |
60 | 60 | requests. |
61 | | -* $wgResourceLoaderVersionedClientMaxage, $wgResourceLoaderVersionedServerMaxage, |
62 | | - $wgResourceLoaderUnversionedClientMaxage and |
63 | | - $wgResourceLoaderUnversionedServerMaxage were added to specify maxage and |
64 | | - smaxage times for responses from ResourceLoader based on whether the request's |
65 | | - URL contained a version parameter or not. |
| 61 | +* $wgResourceLoaderMaxage was added to specify maxage and smaxage times for |
| 62 | + responses from ResourceLoader based on whether the request's URL contained a |
| 63 | + version parameter or not. |
| 64 | +* $wgResourceLoaderDebug was added to specify the default state of debug mode; |
| 65 | + this will still be overridden with the debug URL parameter a la $wgLanguageCode. |
66 | 66 | |
67 | 67 | === New features in 1.17 === |
68 | 68 | * (bug 10183) Users can now add personal styles and scripts to all skins via |
Property changes on: branches/uploadwizard/phase3/RELEASE-NOTES |
___________________________________________________________________ |
Added: svn:mergeinfo |
69 | 69 | Merged /branches/new-installer/phase3/RELEASE-NOTES:r43664-66004 |
70 | 70 | Merged /branches/REL1_15/phase3/RELEASE-NOTES:r51646 |
71 | 71 | Merged /branches/sqlite/RELEASE-NOTES:r58211-58321 |
72 | 72 | Merged /trunk/phase3/RELEASE-NOTES:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/languages |
___________________________________________________________________ |
Added: svn:mergeinfo |
73 | 73 | Merged /branches/new-installer/phase3/languages:r43664-66004 |
74 | 74 | Merged /branches/REL1_15/phase3/languages:r51646 |
75 | 75 | Merged /branches/sqlite/languages:r58211-58321 |
76 | 76 | Merged /trunk/phase3/languages:r73549-73568 |
Index: branches/uploadwizard/phase3/includes/OutputPage.php |
— | — | @@ -2281,12 +2281,12 @@ |
2282 | 2282 | } |
2283 | 2283 | |
2284 | 2284 | static function makeResourceLoaderLink( $skin, $modules, $only ) { |
2285 | | - global $wgUser, $wgLang, $wgRequest, $wgLoadScript; |
| 2285 | + global $wgUser, $wgLang, $wgRequest, $wgLoadScript, $wgResourceLoaderDebug; |
2286 | 2286 | // TODO: Should this be a static function of ResourceLoader instead? |
2287 | 2287 | // TODO: Divide off modules starting with "user", and add the user parameter to them |
2288 | 2288 | $query = array( |
2289 | 2289 | 'lang' => $wgLang->getCode(), |
2290 | | - 'debug' => ( $wgRequest->getBool( 'debug' ) && $wgRequest->getVal( 'debug' ) == 'true' ) ? 'true' : 'false', |
| 2290 | + 'debug' => $wgRequest->getFuzzyBool( 'debug', $wgResourceLoaderDebug ) ? 'true' : 'false', |
2291 | 2291 | 'skin' => $wgUser->getSkin()->getSkinName(), |
2292 | 2292 | 'only' => $only, |
2293 | 2293 | ); |
— | — | @@ -2346,8 +2346,7 @@ |
2347 | 2347 | * @return String: HTML fragment |
2348 | 2348 | */ |
2349 | 2349 | function getHeadScripts( Skin $sk ) { |
2350 | | - global $wgUser, $wgRequest; |
2351 | | - global $wgUseSiteJs; |
| 2350 | + global $wgUser, $wgRequest, $wgUseSiteJs, $wgResourceLoaderDebug; |
2352 | 2351 | |
2353 | 2352 | // Statup - this will immediately load jquery and mediawiki modules |
2354 | 2353 | $scripts = self::makeResourceLoaderLink( $sk, 'startup', 'scripts' ); |
— | — | @@ -2357,7 +2356,7 @@ |
2358 | 2357 | $scripts .= Skin::makeGlobalVariablesScript( $sk->getSkinName() ) . "\n"; |
2359 | 2358 | |
2360 | 2359 | // Script and Messages "only" |
2361 | | - if ( $wgRequest->getBool( 'debug' ) && $wgRequest->getVal( 'debug' ) !== 'false' ) { |
| 2360 | + if ( $wgRequest->getFuzzyBool( 'debug', $wgResourceLoaderDebug ) ) { |
2362 | 2361 | // Scripts |
2363 | 2362 | foreach ( $this->getModuleScripts() as $name ) { |
2364 | 2363 | $scripts .= self::makeResourceLoaderLink( $sk, $name, 'scripts' ); |
— | — | @@ -2381,7 +2380,7 @@ |
2382 | 2381 | if ( $this->getModules() ) { |
2383 | 2382 | $modules = FormatJson::encode( $this->getModules() ); |
2384 | 2383 | $scripts .= Html::inlineScript( |
2385 | | - "if ( mediaWiki !== undefined ) { mediaWiki.loader.load( {$modules} ); mediaWiki.loader.go(); }" |
| 2384 | + "if ( window.mediaWiki ) { mediaWiki.loader.load( {$modules} ); mediaWiki.loader.go(); }" |
2386 | 2385 | ) . "\n"; |
2387 | 2386 | } |
2388 | 2387 | |
— | — | @@ -2455,7 +2454,7 @@ |
2456 | 2455 | * @return string HTML tag links to be put in the header. |
2457 | 2456 | */ |
2458 | 2457 | public function getHeadLinks( $sk ) { |
2459 | | - global $wgFeed, $wgRequest; |
| 2458 | + global $wgFeed, $wgRequest, $wgResourceLoaderDebug; |
2460 | 2459 | |
2461 | 2460 | // Ideally this should happen earlier, somewhere. :P |
2462 | 2461 | $this->addDefaultMeta(); |
— | — | @@ -2526,7 +2525,7 @@ |
2527 | 2526 | } |
2528 | 2527 | |
2529 | 2528 | // Support individual script requests in debug mode |
2530 | | - if ( $wgRequest->getBool( 'debug' ) && $wgRequest->getVal( 'debug' ) !== 'false' ) { |
| 2529 | + if ( $wgRequest->getFuzzyBool( 'debug', $wgResourceLoaderDebug ) ) { |
2531 | 2530 | foreach ( $this->getModuleStyles() as $name ) { |
2532 | 2531 | $tags[] = self::makeResourceLoaderLink( $sk, $name, 'styles' ); |
2533 | 2532 | } |
Property changes on: branches/uploadwizard/phase3/includes/OutputPage.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
2534 | 2533 | Merged /trunk/phase3/includes/OutputPage.php:r73549-73568 |
Index: branches/uploadwizard/phase3/includes/ResourceLoader.php |
— | — | @@ -249,8 +249,7 @@ |
250 | 250 | * @param $context ResourceLoaderContext object |
251 | 251 | */ |
252 | 252 | public static function respond( ResourceLoaderContext $context ) { |
253 | | - global $wgResourceLoaderVersionedClientMaxage, $wgResourceLoaderVersionedServerMaxage; |
254 | | - global $wgResourceLoaderUnversionedServerMaxage, $wgResourceLoaderUnversionedClientMaxage; |
| 253 | + global $wgResourceLoaderMaxage; |
255 | 254 | |
256 | 255 | wfProfileIn( __METHOD__ ); |
257 | 256 | self::initialize(); |
— | — | @@ -270,14 +269,14 @@ |
271 | 270 | // If a version wasn't specified we need a shorter expiry time for updates to |
272 | 271 | // propagate to clients quickly |
273 | 272 | if ( is_null( $context->getVersion() ) ) { |
274 | | - $maxage = $wgResourceLoaderUnversionedClientMaxage; |
275 | | - $smaxage = $wgResourceLoaderUnversionedServerMaxage; |
| 273 | + $maxage = $wgResourceLoaderMaxage['unversioned']['client']; |
| 274 | + $smaxage = $wgResourceLoaderMaxage['unversioned']['server']; |
276 | 275 | } |
277 | 276 | // If a version was specified we can use a longer expiry time since changing |
278 | 277 | // version numbers causes cache misses |
279 | 278 | else { |
280 | | - $maxage = $wgResourceLoaderVersionedClientMaxage; |
281 | | - $smaxage = $wgResourceLoaderVersionedServerMaxage; |
| 279 | + $maxage = $wgResourceLoaderMaxage['versioned']['client']; |
| 280 | + $smaxage = $wgResourceLoaderMaxage['versioned']['server']; |
282 | 281 | } |
283 | 282 | |
284 | 283 | // To send Last-Modified and support If-Modified-Since, we need to detect |
Property changes on: branches/uploadwizard/phase3/includes/ResourceLoader.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
285 | 284 | Merged /trunk/phase3/includes/ResourceLoader.php:r73549-73568 |
Index: branches/uploadwizard/phase3/includes/WebRequest.php |
— | — | @@ -347,6 +347,19 @@ |
348 | 348 | public function getBool( $name, $default = false ) { |
349 | 349 | return $this->getVal( $name, $default ) ? true : false; |
350 | 350 | } |
| 351 | + |
| 352 | + /** |
| 353 | + * Fetch a boolean value from the input or return $default if not set. |
| 354 | + * Unlike getBool, the string "false" will result in boolean false, which is |
| 355 | + * useful when interpreting information sent from JavaScript. |
| 356 | + * |
| 357 | + * @param $name String |
| 358 | + * @param $default Boolean |
| 359 | + * @return Boolean |
| 360 | + */ |
| 361 | + public function getFuzzyBool( $name, $default = false ) { |
| 362 | + return $this->getBool( $name, $default ) && $this->getVal( $name ) !== 'false'; |
| 363 | + } |
351 | 364 | |
352 | 365 | /** |
353 | 366 | * Return true if the named value is set in the input, whatever that |
Property changes on: branches/uploadwizard/phase3/includes/Interwiki.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
354 | 367 | Merged /trunk/phase3/includes/Interwiki.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/includes/GlobalFunctions.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
355 | 368 | Merged /trunk/phase3/includes/GlobalFunctions.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/includes/ConfEditor.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
356 | 369 | Merged /trunk/phase3/includes/ConfEditor.php:r73549-73568 |
Index: branches/uploadwizard/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -968,8 +968,6 @@ |
969 | 969 | } |
970 | 970 | } |
971 | 971 | |
972 | | - $titleObj = SpecialPage::getTitleFor( 'Userlogin' ); |
973 | | - |
974 | 972 | if ( $this->mType == 'signup' ) { |
975 | 973 | global $wgLivePasswordStrengthChecks; |
976 | 974 | if ( $wgLivePasswordStrengthChecks ) { |
Property changes on: branches/uploadwizard/phase3/includes/specials |
___________________________________________________________________ |
Modified: svn:mergeinfo |
977 | 975 | Merged /trunk/phase3/includes/specials:r73549-73568 |
Index: branches/uploadwizard/phase3/includes/ResourceLoaderContext.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | /* Methods */ |
42 | 42 | |
43 | 43 | public function __construct( WebRequest $request ) { |
44 | | - global $wgLang, $wgDefaultSkin; |
| 44 | + global $wgLang, $wgDefaultSkin, $wgResourceLoaderDebug; |
45 | 45 | |
46 | 46 | $this->request = $request; |
47 | 47 | // Interperet request |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | $this->direction = $request->getVal( 'dir' ); |
51 | 51 | $this->skin = $request->getVal( 'skin' ); |
52 | 52 | $this->user = $request->getVal( 'user' ); |
53 | | - $this->debug = $request->getBool( 'debug' ) && $request->getVal( 'debug' ) === 'true'; |
| 53 | + $this->debug = $request->getFuzzyBool( 'debug', $wgResourceLoaderDebug ); |
54 | 54 | $this->only = $request->getVal( 'only' ); |
55 | 55 | $this->version = $request->getVal( 'version' ); |
56 | 56 | |
Property changes on: branches/uploadwizard/phase3/includes/HistoryPage.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
57 | 57 | Merged /trunk/phase3/includes/HistoryPage.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/includes/installer/DatabaseInstaller.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
58 | 58 | Merged /trunk/phase3/includes/installer/DatabaseInstaller.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/includes/api |
___________________________________________________________________ |
Modified: svn:mergeinfo |
59 | 59 | Merged /trunk/phase3/includes/api:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/includes/ChangesList.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
60 | 60 | Merged /trunk/phase3/includes/ChangesList.php:r73549-73568 |
Index: branches/uploadwizard/phase3/includes/ProtectionForm.php |
— | — | @@ -592,7 +592,7 @@ |
593 | 593 | $encOptions = Xml::encodeJsVar( $options ); |
594 | 594 | |
595 | 595 | $script .= "ProtectionForm.init($encOptions)"; |
596 | | - return Html::inlineScript( "if ( mediaWiki !== undefined ) { mediaWiki.loader.using( 'mediawiki.legacy.protect', function() { {$script} } ); }" ); |
| 596 | + return Html::inlineScript( "if ( window.mediaWiki ) { $script }" ); |
597 | 597 | } |
598 | 598 | |
599 | 599 | /** |
Property changes on: branches/uploadwizard/phase3/includes/Title.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
600 | 600 | Merged /trunk/phase3/includes/Title.php:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/includes/json/Services_JSON.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
601 | 601 | Merged /trunk/phase3/includes/json/Services_JSON.php:r73549-73568 |
Index: branches/uploadwizard/phase3/includes/Message.php |
— | — | @@ -158,7 +158,9 @@ |
159 | 159 | if( $lang instanceof Language ){ |
160 | 160 | $this->language = $lang; |
161 | 161 | } elseif ( is_string( $lang ) ) { |
162 | | - $this->language = Language::factory( $lang ); |
| 162 | + if( $this->language->getCode() != $lang ) { |
| 163 | + $this->language = Language::factory( $lang ); |
| 164 | + } |
163 | 165 | } else { |
164 | 166 | $type = gettype( $lang ); |
165 | 167 | throw new MWException( __METHOD__ . " must be " |
Index: branches/uploadwizard/phase3/includes/DefaultSettings.php |
— | — | @@ -1645,32 +1645,28 @@ |
1646 | 1646 | $wgClockSkewFudge = 5; |
1647 | 1647 | |
1648 | 1648 | /** |
1649 | | - * Maximum time in seconds to cache versioned resources served by the resource |
1650 | | - * loader on the client side (e.g. in the browser cache). |
| 1649 | + * Maximum time in seconds to cache resources served by the resource loader |
1651 | 1650 | */ |
1652 | | -$wgResourceLoaderVersionedClientMaxage = 30 * 24 * 60 * 60; // 30 days |
| 1651 | +$wgResourceLoaderMaxage = array( |
| 1652 | + 'versioned' => array( |
| 1653 | + // Squid/Varnish but also any other public proxy cache between the client and MediaWiki |
| 1654 | + 'server' => 30 * 24 * 60 * 60, // 30 days |
| 1655 | + // On the client side (e.g. in the browser cache). |
| 1656 | + 'client' => 30 * 24 * 60 * 60, // 30 days |
| 1657 | + ), |
| 1658 | + 'unversioned' => array( |
| 1659 | + 'server' => 5 * 60, // 5 minutes |
| 1660 | + 'client' => 5 * 60, // 5 minutes |
| 1661 | + ), |
| 1662 | +); |
1653 | 1663 | |
1654 | 1664 | /** |
1655 | | - * Maximum time in seconds to cache versioned resources served by the resource |
1656 | | - * loader on the server side. This means Squid/Varnish but also any other public |
1657 | | - * proxy cache between the client and MediaWiki. |
| 1665 | + * The default debug mode (on/off) for of ResourceLoader requests. This will still |
| 1666 | + * be overridden when the debug URL parameter is used. |
1658 | 1667 | */ |
1659 | | -$wgResourceLoaderVersionedServerMaxage = 30 * 24 * 60 * 60; // 30 days |
| 1668 | +$wgResourceLoaderDebug = false; |
1660 | 1669 | |
1661 | 1670 | /** |
1662 | | - * Maximum time in seconds to cache unversioned resources served by the resource |
1663 | | - * loader on the client. |
1664 | | - */ |
1665 | | -$wgResourceLoaderUnversionedClientMaxage = 5 * 60; // 5 minutes |
1666 | | - |
1667 | | -/** |
1668 | | - * Maximum time in seconds to cache unversioned resources served by the resource |
1669 | | - * loader on the server. This means Squid/Varnish but also any other public |
1670 | | - * proxy cache between the client and MediaWiki. |
1671 | | - */ |
1672 | | -$wgResourceLoaderUnversionedServerMaxage = 5 * 60; // 5 minutes |
1673 | | - |
1674 | | -/** |
1675 | 1671 | * Enable data URL embedding (experimental). This variable is very temporary and |
1676 | 1672 | * will be removed once we get this feature stable. |
1677 | 1673 | */ |
Index: branches/uploadwizard/phase3/includes/EditPage.php |
— | — | @@ -2246,7 +2246,7 @@ |
2247 | 2247 | } |
2248 | 2248 | |
2249 | 2249 | $wgOut->addScript( Html::inlineScript( |
2250 | | - "if ( mediaWiki !== undefined ) { $script }" |
| 2250 | + "if ( window.mediaWiki ) { $script }" |
2251 | 2251 | ) ); |
2252 | 2252 | |
2253 | 2253 | $toolbar .= "\n</div>"; |
Property changes on: branches/uploadwizard/phase3/includes |
___________________________________________________________________ |
Modified: svn:mergeinfo |
2254 | 2254 | Merged /trunk/phase3/includes:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/FAQ |
___________________________________________________________________ |
Added: svn:mergeinfo |
2255 | 2255 | Merged /branches/new-installer/phase3/FAQ:r43664-66004 |
2256 | 2256 | Merged /branches/REL1_15/phase3/FAQ:r51646 |
2257 | 2257 | Merged /branches/sqlite/FAQ:r58211-58321 |
2258 | 2258 | Merged /trunk/phase3/FAQ:r73549-73568 |
Property changes on: branches/uploadwizard/phase3/resources |
___________________________________________________________________ |
Added: svn:mergeinfo |
2259 | 2259 | Merged /branches/sqlite/resources:r58211-58321 |
2260 | 2260 | Merged /trunk/phase3/resources:r73549-73568 |
2261 | 2261 | Merged /branches/new-installer/phase3/resources:r43664-66004 |
2262 | 2262 | Merged /branches/REL1_15/phase3/resources:r51646 |
Property changes on: branches/uploadwizard/phase3 |
___________________________________________________________________ |
Modified: svn:mergeinfo |
2263 | 2263 | Merged /trunk/phase3:r73549-73568* |
Property changes on: branches/uploadwizard/extensions/ContactPageFundraiser |
___________________________________________________________________ |
Modified: svn:mergeinfo |
2264 | 2264 | Merged /trunk/phase3/extensions/ContactPageFundraiser:r73544-73568 |
Property changes on: branches/uploadwizard/extensions/XMLRC/generator/README |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Property changes on: branches/uploadwizard/extensions/XMLRC/generator/rc2udp.ini.sample |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Property changes on: branches/uploadwizard/extensions/XMLRC/generator/rc2udp.py |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Property changes on: branches/uploadwizard/extensions/XMLRC/generator |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Property changes on: branches/uploadwizard/extensions/XMLRC/bridge/udp2xmpp-wikis.ini.sample |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Property changes on: branches/uploadwizard/extensions/XMLRC/bridge/udp2xmpp.py |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Property changes on: branches/uploadwizard/extensions/XMLRC/bridge/udp2xmpp.ini.sample |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Property changes on: branches/uploadwizard/extensions/XMLRC/client/README |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Property changes on: branches/uploadwizard/extensions/Translate/data/plural-gettext.txt |
___________________________________________________________________ |
Deleted: svn:mergeinfo |
Index: branches/uploadwizard/extensions/UploadWizard/UploadWizardMessages.php |
— | — | @@ -49,8 +49,7 @@ |
50 | 50 | $messagesForJs[ $key ] = wfMsgGetKey( $key, /*DB*/true, $language, /*Transform*/false ); |
51 | 51 | } |
52 | 52 | |
53 | | - $json = new Services_JSON(); |
54 | | - $messagesJson = $json->encode( $messagesForJs ); |
| 53 | + $messagesJson = FormatJson::encode( $messagesForJs ); |
55 | 54 | return 'mw.addMessages(' . $messagesJson . ');'; |
56 | 55 | } |
57 | 56 | |
— | — | @@ -69,5 +68,3 @@ |
70 | 69 | } |
71 | 70 | |
72 | 71 | } |
73 | | - |
74 | | -?> |
Index: branches/uploadwizard/extensions/UploadWizard/SessionStash.php |
— | — | @@ -1,4 +1,14 @@ |
2 | 2 | <?php |
| 3 | +/** |
| 4 | + * SessionStash is intended to accomplish a few things: |
| 5 | + * - enable applications to temporarily stash files without publishing them to the wiki. |
| 6 | + * - Several parts of MediaWiki do this in similar ways: UploadBase, UploadWizard, and FirefoggChunkedExtension |
| 7 | + * the idea is to unify them all here |
| 8 | + * - enable applications to find said files later, as long as the session or temp files haven't been purged. |
| 9 | + * - enable the uploading user (and *ONLY* the uploading user) to access said files, and thumbnails of said files, via a URL. |
| 10 | + * We accomplish this by making the session serve as a URL->file mapping, on the assumption that nobody else can access |
| 11 | + * the session, even the uploading user. |
| 12 | + */ |
3 | 13 | |
4 | 14 | class SessionStash { |
5 | 15 | // repository that this uses to store temp files |
— | — | @@ -7,9 +17,12 @@ |
8 | 18 | // array of initialized objects obtained from session (lazily initialized upon getFile()) |
9 | 19 | private $files = array(); |
10 | 20 | |
11 | | - const SESSION_VERSION = 2; |
12 | | - const SESSION_KEYNAME = 'wsUploadData'; |
13 | | - const SESSION_THUMB_KEYNAME = 'wsUploadDataThumb'; |
| 21 | + // the base URL for files in the stash |
| 22 | + private $baseUrl; |
| 23 | + |
| 24 | + // TODO: Once UploadBase starts using this, switch to use these constants rather than UploadBase::SESSION* |
| 25 | + // const SESSION_VERSION = 2; |
| 26 | + // const SESSION_KEYNAME = 'wsUploadData'; |
14 | 27 | |
15 | 28 | /** |
16 | 29 | * Represents the session which contain temporarily stored files. |
— | — | @@ -27,14 +40,15 @@ |
28 | 41 | throw new MWException( 'session not available' ); |
29 | 42 | } |
30 | 43 | |
31 | | - if ( ! array_key_exists( self::SESSION_KEYNAME, $_SESSION ) ) { |
32 | | - $_SESSION[self::SESSION_KEYNAME] = array(); |
| 44 | + if ( ! array_key_exists( UploadBase::SESSION_KEYNAME, $_SESSION ) ) { |
| 45 | + $_SESSION[UploadBase::SESSION_KEYNAME] = array(); |
33 | 46 | } |
| 47 | + |
| 48 | + $this->baseUrl = SpecialPage::getTitleFor( 'SessionStash' )->getLocalURL(); |
34 | 49 | } |
35 | 50 | |
36 | 51 | public function getBaseUrl() { |
37 | | - // XXX do this better |
38 | | - return '/wiki/Special:SessionStash'; |
| 52 | + return $this->baseUrl; |
39 | 53 | } |
40 | 54 | |
41 | 55 | /** |
— | — | @@ -45,9 +59,9 @@ |
46 | 60 | */ |
47 | 61 | public function getFile( $key ) { |
48 | 62 | if ( !array_key_exists( $key, $this->files ) ) { |
49 | | - $stashData = $_SESSION[self::SESSION_KEYNAME][$key]; |
| 63 | + $stashData = $_SESSION[UploadBase::SESSION_KEYNAME][$key]; |
50 | 64 | |
51 | | - if ($stashData['version'] !== self::SESSION_VERSION ) { |
| 65 | + if ($stashData['version'] !== UploadBase::SESSION_VERSION ) { |
52 | 66 | throw new MWException( 'session item schema does not match current software' ); |
53 | 67 | } |
54 | 68 | |
— | — | @@ -96,7 +110,7 @@ |
97 | 111 | 'mTempPath' => $stashPath, |
98 | 112 | 'mFileSize' => $fileSize, |
99 | 113 | 'mFileProps' => $fileProps, |
100 | | - 'version' => self::SESSION_VERSION |
| 114 | + 'version' => UploadBase::SESSION_VERSION |
101 | 115 | ); |
102 | 116 | |
103 | 117 | // put extended info into the session (this changes from application to application). |
— | — | @@ -107,7 +121,7 @@ |
108 | 122 | } |
109 | 123 | } |
110 | 124 | |
111 | | - $_SESSION[self::SESSION_KEYNAME][$key] = $stashData; |
| 125 | + $_SESSION[UploadBase::SESSION_KEYNAME][$key] = $stashData; |
112 | 126 | |
113 | 127 | wfDebug( "SESSION\n=====\n " . print_r( $_SESSION, 1 ) . "\n" ); |
114 | 128 | |
— | — | @@ -156,6 +170,9 @@ |
157 | 171 | * Find or guess extension -- ensuring that our extension matches our mime type. |
158 | 172 | * Since these files are constructed from php tempnames they may not start off |
159 | 173 | * with an extension |
| 174 | + * This does not override getExtension because things like getMimeType already call getExtension, |
| 175 | + * and that results in infinite recursion. So, we preemptively *set* the extension so getExtension can find it. |
| 176 | + * For obvious reasons this should be called as early as possible, as part of initialization |
160 | 177 | */ |
161 | 178 | public function setExtension() { |
162 | 179 | // Does this have an extension? |
— | — | @@ -179,7 +196,7 @@ |
180 | 197 | throw 'cannot determine extension'; |
181 | 198 | } |
182 | 199 | |
183 | | - return parent::normalizeExtension( $extension ); |
| 200 | + $this->extension = parent::normalizeExtension( $extension ); |
184 | 201 | } |
185 | 202 | |
186 | 203 | /** |
— | — | @@ -188,7 +205,7 @@ |
189 | 206 | * buggy code elsewhere that expects a boolean 'suffix' |
190 | 207 | * |
191 | 208 | * @param {String|false} name of thumbnail (e.g. "120px-123456.jpg" ), or false to just get the path |
192 | | - * @param {String} path thumbnail should take on filesystem, or containing directory if thumbname is false |
| 209 | + * @return {String} path thumbnail should take on filesystem, or containing directory if thumbname is false |
193 | 210 | */ |
194 | 211 | public function getThumbPath( $thumbName=false ) { |
195 | 212 | $path = dirname( $this->path ); |
— | — | @@ -251,6 +268,7 @@ |
252 | 269 | /** |
253 | 270 | * Return the URL of the file, if for some reason we wanted to download it |
254 | 271 | * We tend not to do this for the original file, but we do want thumb icons |
| 272 | + * @return {String} url |
255 | 273 | */ |
256 | 274 | public function getUrl() { |
257 | 275 | if ( !isset( $this->url ) ) { |
— | — | @@ -268,7 +286,7 @@ |
269 | 287 | public function transform( $params, $flags=0 ) { |
270 | 288 | |
271 | 289 | // force it to get a thumbnail right away |
272 | | - $flags &= self::RENDER_NOW; |
| 290 | + $flags |= self::RENDER_NOW; |
273 | 291 | |
274 | 292 | // returns a ThumbnailImage object containing the url and path. Note. NOT A FILE OBJECT. |
275 | 293 | $thumb = parent::transform( $params, $flags ); |
— | — | @@ -282,12 +300,10 @@ |
283 | 301 | } |
284 | 302 | |
285 | 303 | $stashedThumbFile = $this->sessionStash->stashFile( $key, $thumb->path ); |
286 | | - $thumb->url = $this->sessionStash->getBaseUrl() . '/' . $key . "." . $stashedThumbFile->extension; |
| 304 | + $thumb->url = $stashedThumbFile->getUrl(); |
287 | 305 | |
288 | 306 | return $thumb; |
289 | 307 | |
290 | 308 | } |
291 | 309 | |
292 | 310 | } |
293 | | - |
294 | | -?> |
Property changes on: branches/uploadwizard/extensions/LocalisationUpdate |
___________________________________________________________________ |
Modified: svn:mergeinfo |
295 | 311 | Merged /trunk/phase3/extensions/LocalisationUpdate:r73544-73568 |
Property changes on: branches/uploadwizard/extensions |
___________________________________________________________________ |
Added: svn:mergeinfo |
296 | 312 | Merged /trunk/phase3/extensions:r73544-73568 |