Index: trunk/phase3/includes/Title.php |
— | — | @@ -1949,24 +1949,24 @@ |
1950 | 1950 | $u->doUpdate(); |
1951 | 1951 | |
1952 | 1952 | # Update site_stats |
1953 | | - if ( $this->getNamespace() == NS_MAIN and $nt->getNamespace() != NS_MAIN ) { |
1954 | | - # Moved out of main namespace |
1955 | | - # not viewed, edited, removing |
1956 | | - $u = new SiteStatsUpdate( 0, 1, -1, $pageCountChange); |
1957 | | - } elseif ( $this->getNamespace() != NS_MAIN and $nt->getNamespace() == NS_MAIN ) { |
1958 | | - # Moved into main namespace |
1959 | | - # not viewed, edited, adding |
| 1953 | + if( $this->isContentPage() && !$nt->isContentPage() ) { |
| 1954 | + # No longer a content page |
| 1955 | + # Not viewed, edited, removing |
| 1956 | + $u = new SiteStatsUpdate( 0, 1, -1, $pageCountChange ); |
| 1957 | + } elseif( !$this->isContentPage() && $nt->isContentPage() ) { |
| 1958 | + # Now a content page |
| 1959 | + # Not viewed, edited, adding |
1960 | 1960 | $u = new SiteStatsUpdate( 0, 1, +1, $pageCountChange ); |
1961 | | - } elseif ( $pageCountChange ) { |
1962 | | - # Added redirect |
| 1961 | + } elseif( $pageCountChange ) { |
| 1962 | + # Redirect added |
1963 | 1963 | $u = new SiteStatsUpdate( 0, 0, 0, 1 ); |
1964 | | - } else{ |
| 1964 | + } else { |
| 1965 | + # Nothing special |
1965 | 1966 | $u = false; |
1966 | 1967 | } |
1967 | | - if ( $u ) { |
| 1968 | + if( $u ) |
1968 | 1969 | $u->doUpdate(); |
1969 | | - } |
1970 | | - |
| 1970 | + |
1971 | 1971 | global $wgUser; |
1972 | 1972 | wfRunHooks( 'TitleMoveComplete', array( &$this, &$nt, &$wgUser, $pageid, $redirid ) ); |
1973 | 1973 | return true; |
— | — | @@ -2501,5 +2501,18 @@ |
2502 | 2502 | } |
2503 | 2503 | return $this; |
2504 | 2504 | } |
| 2505 | + |
| 2506 | + /** |
| 2507 | + * Is this Title in a namespace which contains content? |
| 2508 | + * In other words, is this a content page, for the purposes of calculating |
| 2509 | + * statistics, etc? |
| 2510 | + * |
| 2511 | + * @return bool |
| 2512 | + */ |
| 2513 | + public function isContentPage() { |
| 2514 | + return Namespace::isContent( $this->getNamespace() ); |
| 2515 | + } |
| 2516 | + |
2505 | 2517 | } |
| 2518 | + |
2506 | 2519 | ?> |
Index: trunk/phase3/includes/Namespace.php |
— | — | @@ -125,5 +125,19 @@ |
126 | 126 | static function canTalk( $index ) { |
127 | 127 | return( $index >= NS_MAIN ); |
128 | 128 | } |
| 129 | + |
| 130 | + /** |
| 131 | + * Does this namespace contain content, for the purposes |
| 132 | + * of calculating statistics, etc? |
| 133 | + * |
| 134 | + * @param $index Index to check |
| 135 | + * @return bool |
| 136 | + */ |
| 137 | + public static function isContent( $index ) { |
| 138 | + global $wgContentNamespaces; |
| 139 | + return $index == NS_MAIN || in_array( $index, $wgContentNamespaces ); |
| 140 | + } |
| 141 | + |
129 | 142 | } |
| 143 | + |
130 | 144 | ?> |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -20,657 +20,19 @@ |
21 | 21 | |
22 | 22 | == Configuration changes == |
23 | 23 | |
24 | | -Several configuration options have changed since 1.8: |
25 | | - |
26 | | -=== $wgEnableAPI === |
27 | | - |
28 | | -The experimental machine API interface is now enabled by default, read-only. |
29 | | -You can disable it by setting $wgEnableAPI = false; in LocalSettings.php. |
30 | | - |
31 | | -=== $wgPathInfo === |
32 | | - |
33 | | -The use of PATH_INFO (the text after the script name in 'index.php/Blah') |
34 | | -is controlled by the $wgUsePathInfo setting. This is now explicitly disabled |
35 | | -for CGI, apache2filter, and ISAPI configurations of PHP, for more consistency |
36 | | -with the autodetection from the installer. |
37 | | - |
38 | | -In some rarer configurations you may have to switch $wgUsePathInfo from false |
39 | | -to true or, perhaps, from true to false to make things work properly if bad |
40 | | -PATH_INFO data comes through the server. |
41 | | - |
42 | | -The wiki now tries to detect this condition and should show you an error |
43 | | -message describing what to change instead of sending the browser into an |
44 | | -infinite redirect loop. |
45 | | - |
46 | | -=== $wgScript and other path settings === |
47 | | - |
48 | | -The following configuration variables are now automatically set in Setup.php |
49 | | -if they are not overridden in LocalSettings.php: |
50 | | - |
51 | | -from $wgScriptPath: |
52 | | - + $wgScript |
53 | | - | \- $wgArticlePath |
54 | | - + $wgRedirectScript |
55 | | - + $wgStylePath |
56 | | - + $wgUploadPath |
57 | | - \- $wgLogo |
58 | | - + $wgMathPath |
59 | | - |
60 | | -from $IP: |
61 | | - - $wgStyleDirectory |
62 | | - + $wgUploadDirectory |
63 | | - \- $wgMathDirectory |
64 | | - + $wgTmpDirectory |
65 | | - |
66 | | -Newly generated configuration files will by default include only $wgScriptPath |
67 | | -(hardcoded from the installer) and $IP (detected at runtime). |
68 | | - |
69 | | -Old configuration files which specify all these values explicitly should |
70 | | -continue to work just fine, but if you use the defaults you can remove them |
71 | | -to reduce clutter. |
72 | | - |
73 | | -=== $wgGroupPermissions === |
74 | | - |
75 | | -The sysop group now holds the "autopatrol" and "ipblock-exempt" rights by |
76 | | -default. |
77 | | - |
78 | | -"autopatrol" replaces the preference for marking ones own edits patrolled |
79 | | -by default; users holding this permission will automatically have their |
80 | | -edits patrolled, while others cannot mark their own edits as patrolled |
81 | | -even if they have patrolling rights. |
82 | | - |
83 | | -"ipblock-exempt" excludes the user from IP blocks; accounts which are blocked |
84 | | -explicitly by name will still be blocked, however. This is given to sysops |
85 | | -to minimize annoyance from accidental "collateral damage"; remember that a |
86 | | -sysop will be able to lift the block if they desire. |
87 | | - |
88 | | -The bot group now holds the "nominornewtalk" right. A user with this right |
89 | | -will not trigger new message notifications when making minor edits to user |
90 | | -talk pages. This is meant to minimize annoyance from maintenance bot |
91 | | -processes. |
92 | | - |
93 | | -=== $wgUseWatchlistCache === |
94 | | - |
95 | | -Watchlist caching has been removed. The feature was not maintained, and has |
96 | | -been unnecessary since switching to the 'recentchanges' database table |
97 | | -reduced server pressure for Wikipedia's watchlists. |
98 | | - |
99 | | -=== $wgBreakFrames === |
100 | | - |
101 | | -MediaWiki in the past attempted to detect when it was embedded in a frameset |
102 | | -and "break out" of it, assuming it to be hostile. |
103 | | - |
104 | | -This behavior is now disabled by default, but can be reenabled by setting |
105 | | -$wgBreakFrames to true in LocalSettings.php. |
106 | | - |
107 | | - |
108 | | -== New settings == |
109 | | - |
110 | | -=== $wgVariantArticlePath === |
111 | | - |
112 | | -For languages with script variant support (Chinese, Serbian, and others), |
113 | | -it's possible to use alternate URL paths to select the variant for article |
114 | | -display, setting $wgVariantArticlePath. |
115 | | - |
116 | | -Documentation for this setting would be useful. |
117 | | - |
118 | | -=== $wgMaxMsgCacheEntrySize === |
119 | | - |
120 | | -The message cache can now skip items larger than a given size; this allows |
121 | | -it to better handle the primary caching case when large CSS and JS blobs are |
122 | | -present. |
123 | | - |
124 | | -=== $wgStyleVersion === |
125 | | - |
126 | | -When making significant changes to skin stylesheets and JavaScript files, |
127 | | -you can append a string to this variable to tweak the generated URLs, |
128 | | -forcing newly rendered pages to bring in a fresh version despite server- |
129 | | -or browser-side caching. |
130 | | - |
131 | | -Normally this will be set in the course of MediaWiki development, but |
132 | | -if doing development on a custom skin you may wish to poke it as well. |
133 | | - |
134 | | -=== $wgRCShowChangedSize === |
135 | | - |
136 | | -Special:Recentchanges and Special:Watchlist now show the number of bytes |
137 | | -added or removed to an article to give an idea of the size of the edit. |
138 | | -This information was previously available only in the IRC update feeds. |
139 | | - |
140 | | -To disable this site-wide, set $wgRCShowChangedSize to false. |
141 | | -(Individual users can suppress the data in custom CSS.) |
142 | | - |
143 | | -Adjust $wgRCChangedSizeThreshold to trigger highlighting of particularly |
144 | | -large changes. |
145 | | - |
146 | | -The formatting of the size figure can be adjusted through the |
147 | | -[[MediaWiki:Rc-change-size]] message. |
148 | | - |
149 | | -=== $wgQueryCacheLimit === |
150 | | - |
151 | | -The number of rows stored for "expensive" special pages in miser mode |
152 | | -can now be adjusted up or down from the default 1000. |
153 | | - |
154 | | -=== $wgDisableQueryPageUpdate === |
155 | | - |
156 | | -Individual "expensive" special pages can be skipped in processing by |
157 | | -updateSpecialPages if added to this list. |
158 | | - |
159 | | -=== $wgSorbsUrl === |
160 | | - |
161 | | -The base hostname for the DNS-based proxy blacklist can now be overridden |
162 | | -when $wgEnableSorbs is set, to use a different blacklist instead of SORBS. |
163 | | -The blacklist would need to respond the same was as SORBS; any positive |
164 | | -response will be taken as a proxy. |
165 | | - |
166 | | -=== $wgAjaxWatch === |
167 | | - |
168 | | -Experimental AJAX mode for the watch/unwatch tabs to execute inline. |
169 | | -Does not include the UI messages describing how to reach the watchlist, |
170 | | -so you may not want it on a general-audience site just yet. |
171 | | - |
172 | | -=== $wgParserTestFiles === |
173 | | - |
174 | | -MediaWiki's parser test suite can now be expanded with additional test |
175 | | -files. Custom extensions can add their test files to this array, and |
176 | | -they will be run along with the main tests by maintenance/parserTests.php |
177 | | - |
178 | | - |
179 | 24 | == Major new features == |
180 | 25 | |
| 26 | +== Changes since 1.9 == |
181 | 27 | |
182 | | -== Changes since 1.8 == |
| 28 | +* Fix site statistics when moving pages in/out of content namespaces |
183 | 29 | |
184 | | -* (bug 8200) Make category lists sorted by name when using Postgres. |
185 | | -* (bug 7841) Support 'IGNORE' inserts for Postgres, fixes watchlist |
186 | | - adding problem. |
187 | | -* (bug 6835) Removing the includes/Parser.php::getTemplateArgs() function, |
188 | | - because it seems to be unused. |
189 | | -* (bug 7139) Increasing the visual width of the edit summary field on larger |
190 | | - screen sizes, for the default monobook skin. |
191 | | -* Fix PHP notice and estimates for dumpBackup.php and friends |
192 | | -* Improved register_globals paranoia checks |
193 | | -* (bug 7545) Fix PHP version check on install |
194 | | -* Disable PHP exception backtrace printing unless $wgShowExceptionDetails |
195 | | - is set. Backtraces may contain sensitive information in function call |
196 | | - parameters. |
197 | | -* (bug 6164) Avoid smashing Cite state if message transformation triggers |
198 | | - during bad image list check, by skipping message transformation. |
199 | | - This isn't a good permanent fix. |
200 | | -* (bug 6918) Stopped borders and backgrounds from showing through floated |
201 | | - tables in Monobook |
202 | | -* (bug 6868) Un-hardcode section edit link style |
203 | | -* (bug 3205) Stop right floats from stacking horizontally in non-Monobook skins |
204 | | -* Added global $wgStyleVersion to centralize bumping CSS and JS file versions |
205 | | - for cache-friendly style and script updating |
206 | | -* (bug 7562) Fix non-ASCII namespaces on Windows/XAMPP servers |
207 | | -* Friendlier check for PHP 5 in command-line scripts; it's common for parallel |
208 | | - PHP 4 and 5 installations to interfere on the command-line. |
209 | | -* Fix regression in autoconfirm permission check |
210 | | -* (bug 3015) Add CSS ids to subcategory and page sections on category pages |
211 | | -* (bug 7587) Fix erroneous id for specialpage tab, enabling informative popup |
212 | | -* (bug 7599) Fix thumbnail purging, PHP notices on HTCP image page purge |
213 | | -* (bug 7581) Update language name for cbk-zam |
214 | | -* (bug 7444) Update namespace translations for Telugu (te), kept old values as |
215 | | - alias for compatibility |
216 | | -* (bug 4525) Move section links down visually to same level as headings |
217 | | - (editsection links are now inside the heading elements) |
218 | | -* Workaround for http://bugs.php.net/bug.php?id=31892 , PATH_INFO and hence |
219 | | - URLs of the style /index.php/Main_Page were broken on some CGI installations. |
220 | | -* (bug 7623) Validate custom HTML id's correctly in Monobook interface |
221 | | -* (bug 2241) Fix collision of 'w' and 'd' accesskeys |
222 | | -* (bug 5795) CSS class added to body based on page name for page-specific |
223 | | - styling |
224 | | -* (bug 6276) Stopped search field from getting too large in Cologne Blue |
225 | | -* (bug 7644) User creations that are aborted by hooks shouldn't be counted |
226 | | - against account creations per day limit |
227 | | -* (bug 7636) Show Firefox 2 users correct accesskey prefix |
228 | | -* (bug 6427) Block blocked IPs from using the mail password function |
229 | | - to allow blocking of flooders |
230 | | -* Include common.css from classic-style skins in main HTML with the bump URL |
231 | | -* (bug 7607) Add Karakalpak (kaa) to Names.php and stub message file for linktrail |
232 | | -* (bug 7582) Add 'tog-nolangconversion' to MessagesEn.php. |
233 | | - This key is need for languages with variants (zh, sr, kk) |
234 | | -* (bug 7606) MediaWiki messages for "rss" and "atom" missing |
235 | | -* (bug 7609) Add some more '*-summary' messages to MessagesEn.php with empty |
236 | | - strings to allow better localisation via Special:Allmessages. Mark this new |
237 | | - messages as optional for localisation. |
238 | | -* Fix user_newpass upgrade for prefixed tables (reported by Fyren) |
239 | | -* (bug 7663) Include language variant switcher links on Nostalgia skin |
240 | | -* (bug 6531) Fix PHP fatal error on installation page with bad username input. |
241 | | -* (bug 6977) Remove 404 link for autogenerated database documentation. |
242 | | -* (bug 7369) Allow "Show Changes" without requiring edit token. |
243 | | -* (bug 7687) Fix movetalk box checks itself when confirming a delete and move. |
244 | | -* (bug 7684) Obey watchcreated preference for Special:Upload watch checkbox |
245 | | -* (bug 7686) Include id attribute on delete form confirmation button |
246 | | -* Allow compound interwiki prefixes in $wgImportSources |
247 | | -* (bug 7304) Added redirect table to store redirect targets. |
248 | | -* Added querycachetwo table (similar to querycache but has two titles) |
249 | | -* PageArchive can now return a Revision object for more convenient processing |
250 | | - of deleted revision data |
251 | | -* Added 'UndeleteShowRevision' hook in Special:Undelete |
252 | | -* Error message on attempt to view invalid or missing deleted revisions |
253 | | -* Remove unsightly "_" from namespace in Special:Allpages, Special:Prefixindex |
254 | | -* (bug 3224) Allow minor edits by bots to skip new message notification on |
255 | | - user talk pages. This can be disabled by adjusting the 'nominornewtalk' |
256 | | - permission. Patch by Werdna. |
257 | | -* (bug 7741) MATH: fixed broken syntax of underbrace etc. Fixed arrays |
258 | | -* Fix purging for updated SVG files |
259 | | -* (bug 7745) Add id attribute to search button in Monobook |
260 | | -* (bug 7749) MATH: added some more LaTeX symbols, e.g. parallel, diamond, ast, ... |
261 | | -* (bug 7304) Added code in Article.php to keep redirect table up to date. |
262 | | -* Made special page names case-insensitive and localisable. Care has been taken |
263 | | - to maintain backwards compatibility. |
264 | | -* Used special page subpages in a few more places, instead of query parameters. |
265 | | -* (bug 7758) Added wrapper span to "templates used" explanation to allow CSS |
266 | | - styling (class="mw-templatesUsedExplanation"). |
267 | | -* Added {{#special:}} parser function, to give the local default title for |
268 | | - special pages |
269 | | -* (bug 7766) Remove redundant / from AJAX requests, can break some servers |
270 | | -* Add tab links from extensions to classic-based skins (SkinTemplateTab hook) |
271 | | - Provides better cross-skin compatibility for extensions using the modern |
272 | | - skin hooks, such as Oversight |
273 | | -* Moved variant language links on Cologne Blue and Nostalgia to before the |
274 | | - login/logout link |
275 | | -* Fix for parser tests with MySQL 5 in strict mode |
276 | | -* Added block option "enable autoblocks" |
277 | | -* Amend Special:Ipblocklist to note when a block has autoblock DISABLED. |
278 | | -* (bug 7780) Fix regression in editing redirects |
279 | | -* Add whitespace above "templates included on this page" using CSS, not |
280 | | - hardcoded line break. |
281 | | -* Remove entries from redirect table on article deletion |
282 | | -* (bug 7788) Force section headers in new section links for users who have |
283 | | - 'prompt for blank edit summaries' on. |
284 | | -* (bug 1133) Special:Emailuser: add an option to send yourself a copy of your mail. |
285 | | -* (bug 461) Allow "Categories:" link at bottom of pages to be customized via |
286 | | - pagecategorieslink message. |
287 | | -* Sort the list of skins in "My Preferences" -> Skins by alphabetical order. |
288 | | -* (bug 7785) Postgres compatibility for timestamps in RC feeds |
289 | | -* (bug 7550) Normalize user parameter normally on Special:Log |
290 | | -* (bug 7294) Fix PATH search for diff3 on install |
291 | | -* Various fixes related to the blocking change re: autoblocks. On inserting |
292 | | - an IP block, the ipb_enable_autoblock field is now automagically blanked, |
293 | | - because it doesn't make any sense for an IP. Additionally, IP blocks |
294 | | - without the ipb_enable_autoblock option no longer show up as "autoblock |
295 | | - disabled" on Special:Ipblocklist. |
296 | | -* (bug 7774) MATH: aded more amstex functions |
297 | | -* (bug 1182) MATH: fixed inconsistent rendering of upper case Greek letters in TeX |
298 | | -* Fix regression in streaming page dump generation |
299 | | -* (bug 7801) Add support for parser function hooks in parser tests |
300 | | -* checkUsernames.php now uses wfDebugLog instead of hardcoded path to log |
301 | | -* (bug 7810) Update talk namespaces for Occitan |
302 | | -* Allow case-sensitive URLs to be used for uploading from URLs. |
303 | | -* (bug 1109) Correct fix for compressed 304 responses when additional output |
304 | | - buffers have been installed within the compression handler |
305 | | -* (bug 7819) Move automatic redirect edit summary after pre-save transform |
306 | | - to work properly with subst: fun |
307 | | -* (bug 7826) Fix typos in two English messages. |
308 | | -* (bug 5365) Stop users being prompted to enter an edit summary for null edits, |
309 | | - if they have selected that option in preferences. |
310 | | -* (bug 5936) Show an 'm' to the left of the edit summary on diff pages for minor edits. |
311 | | -* (bug 7820) Improve error reporting for uploads via URL. |
312 | | -* (bug 5149) When autoblocks are enabled, retroactively apply an autoblock to the most |
313 | | - recently used IP of a user when they are blocked. |
314 | | -* Add an index on (rc_user_text,rc_timestamp) on the recentchanges table. This will |
315 | | - make CheckUser.php and the new retroactive autoblock functionality faster. |
316 | | -* Fix regression in Special:Undelete for revisions deleted under MediaWiki 1.4 |
317 | | - with compression or legacy encoding |
318 | | -* (bug 6737) Fixes for MySQL 5 schema in strict mode |
319 | | -* Approximate height for client-side scaling fallback instead of passing -1 |
320 | | - into the HTML output. |
321 | | -* Make the DNSBL to check for proxy blocking configurable via $wgSorbsUrl |
322 | | -* Add experimental recording/reporting mode to parser tests runner, to |
323 | | - compare changes against the previous run. |
324 | | - Additional tables 'testrun' and 'testitem' are in maintenance/testRunner.sql, |
325 | | - source this and pass --record option to parserTests.php |
326 | | -* Make the set of default parser test input files extensible via |
327 | | - $wgParserTestFiles. This can now be appended to by extensions or local |
328 | | - configuration files so that extension or custom tests can be automatically |
329 | | - run along with the main batch. |
330 | | -* Run PHP install version checks on update.php so command-line updaters see |
331 | | - new version requirements |
332 | | -* Do a check for the PHP 5.0.x 64-bit bug, since this is much more disruptive |
333 | | - as of MW 1.8 than it used to be. Install or upgrade now aborts with a |
334 | | - warning and a request to upgrade. |
335 | | -* (bug 6440) Updated indexes to improve backlinking queries (links, templates, images) |
336 | | -* Switched 'anon-only' block mode to default for IP blocks |
337 | | -* (bug 3687, 7892) Add distinct heading for media files in category display, |
338 | | - with count. |
339 | | -* (bug 1578) Add different icons for external links to audio, video, or PDF in |
340 | | - Monobook. |
341 | | -* Made autoblocks block account creation if the user block has that option enabled. |
342 | | -* Add auto-summaries to blankings and large removals without summaries. |
343 | | -* (bug 7811) Allow preview of edit summaries. |
344 | | -* (bug 6839) Wikibits.js minor changes to make JS-lint happier. |
345 | | -* (bug 7932) Make sure that edit toolbar clears floats so it appears correctly. |
346 | | -* (bug 6873) When viewing old revisions, add link to diff to current version. |
347 | | -* (bug 3315) Provide rollback link directly on history page. |
348 | | -* Replace 'old-revision-navigation' message with 'revision-info' and |
349 | | - 'revision-nav' messages, wrapped in divs with appropriate id's. |
350 | | -* (bug 4178) MediaWiki:Common.js will now be included for all users if |
351 | | - $wgUseSiteJs is enabled, in addition to (if applicable) MediaWiki:Monobook.js |
352 | | - and user JS subpages. |
353 | | -* (bug 7918) "Templates used on this page" changes during preview to reflect |
354 | | - any added or removed templates, and works as expected for section edits. |
355 | | -* (bug 7919) "Templates used on this page" is now shown for read-only pages. |
356 | | -* (bug 7688) When viewing diff, section anchors in autosummary jump to section |
357 | | - on current page instead of loading the latest version. |
358 | | -* (bug 7970) Use current connection explicitly on Database::getServerVersion |
359 | | -* (bug 2001) Tables with class="sortable" can now be dynamically sorted via |
360 | | - JavaScript. |
361 | | -* Added autosummary for new pages with 500 or less characters, and refactor |
362 | | - the autosummary code so it's all done in one function. doEdit is getting too |
363 | | - big! |
364 | | -* (bug 7554) The correct MIME type for SVG images is now displayed on the |
365 | | - image page (image/svg+xml, not image/svg). |
366 | | -* (bug 7883) Added autoblock whitelisting feature, using which specific ranges |
367 | | - can be protected from autoblocking. These ranges are specified, in list format, |
368 | | - in the autoblock_whitelist system message. |
369 | | -* Added placeholders for text injection by hooks to EditPage.php |
370 | | -* (bug 8009) Automatic edit summary for redirects is not filled for edits in existing pages |
371 | | -* Installer support for experimental MySQL 4.1/5.0 binary-safe schema |
372 | | -* Use INSERT IGNORE for db-based BagOStuff add/insert, for more memcache-like |
373 | | - behavior when keys already exist on add (instead of dying with an error...) |
374 | | -* Add a hook 'UploadForm:initial' before the upload form is generated, and two |
375 | | - member variable for text injection into the form, which can be filled by the hooks. |
376 | | -* (bug 6295) Add a "revision patching" functionality, where an edit can be undone |
377 | | - (with a functionality similar to diff rev1 rev2 | patch -R rev3 -o rev3). |
378 | | - This is triggered by including &undo=revid in an edit URL. A link to a URL |
379 | | - that will undo a given edit is shown on NEW revision headers on diff pages. |
380 | | - The link leads to a "Show Changes" page showing what will be done to undo the |
381 | | - edit. |
382 | | -* Fix display of link in "already rolled back" message for image/category pages |
383 | | -* (bug 6016) Left-aligned images should stack vertically, like right-aligned |
384 | | - images, not horizontally. |
385 | | -* Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php |
386 | | -* Add AuthPluginSetup hook to override $wgAuth after configuration |
387 | | -* Fix regression in authentication hook auto-creation on login |
388 | | -* (bug 8110) Allow spaces in ISBNs |
389 | | -* (bug 8024) Introduce "send me copies of emails I send to others" preference |
390 | | -* Added 'EditPage::attemptSave' hook before an article is saved. |
391 | | -* (bug 8083) Applied patch for sk localisation |
392 | | -* Add a backslash character to the edit token, to prevent edits via certain |
393 | | - broken proxies that mangle such characters in form submissions |
394 | | -* (bug 7461) Allow overwriting pages using importTextFile.php |
395 | | -* (bug 7946) importTextFile.php doesn't perform pre-save transform |
396 | | -* (bug 8117) {{REVISIONTIMESTAMP}} showed weird default if $wgLocalTZoffset set; |
397 | | - now uses current time for previews and if timestamp can't be loaded from DB |
398 | | -* {{REVISIONTIMESTAMP}} now uses site local timezone instead of user timezone |
399 | | - to ensure consistent behavior |
400 | | -* {{REVISIONTIMESTAMP}} and friends should now work on non-MySQL backends |
401 | | -* (bug 7671) Observe canonical media namespace prefix in Linker::formatComment |
402 | | -* Added js variable wgCurRevisionId to the output |
403 | | -* (bug 8141) Cleanup of Parser::doTableStuff, patch by AzaTht |
404 | | -* (bug 8042) Make miser mode caching limits settable via $wgQueryCacheLimit |
405 | | - instead of hardcoding to 1000 |
406 | | -* Enable QueryPage classes to override list formatting |
407 | | -* (bug 5485) Show number of intervening revisions in diff view |
408 | | -* (bug 8100) Fix XHTML validity in Taiwanese localization |
409 | | -* Added redirect to section feature. Use it wisely. |
410 | | -* Added a configuration variable allowing the "break out of framesets" feature |
411 | | - to be switched on and off ($wgBreakFrames). Off by default. |
412 | | -* Allow Xml::check() $attribs parameter to override 'value' attribute |
413 | | -* DB schema change: added two columns (rc_old_len and rc_new_len) to the recentchanges table to store |
414 | | - the text lengths before and after the edit |
415 | | -* (bug 1085) Made Special:Recentchanges show the character difference between the changed revisions |
416 | | -* Removed a redundant <strong> tag from diff pages that was causing display issues for some users |
417 | | -* (bug 8203) The keyboard shortcut for "log out" was removed, because users were pressing it |
418 | | - when they intended to press the shortcut for "preview". |
419 | | -* (bug 8148) Handle non-removable output buffers gracefully when cleaning |
420 | | - buffers for HTTP 304 responses, StreamFile, and Special:Export. |
421 | | - Duplicated code merged into wfResetOutputBuffers() and wfClearOutputBuffers() |
422 | | -* Special:AllPages : 'next page' link now point to the first title of the next |
423 | | - chunk instead of pointing to the last title of current chunk. |
424 | | -* (bug 4673) Special:AllPages : add a 'previous' link (new message 'prevpage') |
425 | | -* (bug 8121) wfRandom() was not between 0 and 1 |
426 | | -* Add static method Parser::createAssocArgs($args), so parser functions can |
427 | | - use the same code to parse arguments as the templates do. |
428 | | -* Change behavior of logins using the temporary e-mailed password (as stored |
429 | | - in user_newpassword hash field). Instead of just logging in silently and |
430 | | - leaving the previous user_password field in place indefinitely, the user |
431 | | - is now prompted to set a new password. |
432 | | - |
433 | | - The password-changing form is at Special:Resetpass; currently it's only |
434 | | - usable for changing from the temporary password during login, but it |
435 | | - could perhaps be generalized, replacing the subform in preferences. |
436 | | - |
437 | | - Once the new password is set successfully, the temporary password is wiped |
438 | | - so it cannot be used to login a second time, and the login process |
439 | | - is completed. |
440 | | -* Suppress 'mail new password' button on login form if $wgAuth forbids |
441 | | - changing user passwords; it wouldn't work very well... |
442 | | -* Consolidate password length checks and $wgAuth manipulation into |
443 | | - User::setPassword() to avoid duplicate code in different places |
444 | | - that set passwords. |
445 | | -* User::setPassword() now throws PasswordError exceptions if the password |
446 | | - is illegal or cannot be set via $wgAuth. These can be caught and a human- |
447 | | - readable error message displayed by UI code. |
448 | | -* Added Title::isSubpage() |
449 | | -* (bug 8241) Don't consider user pages of User:Foo.css to be CSS subpages |
450 | | -* Set an explicit class on framed thumbnail inner divs and images, changed some |
451 | | - CSS to use these instead of using descendent selectors. |
452 | | -* Accept null parameter to User::setPassword() as indicating the password |
453 | | - field should be cleared to an unusable state. Login will only be possible |
454 | | - after the password is reset, for instance by e-mail. |
455 | | -* (bug 6394) Invalidate the password set for "by e-mail" account creations |
456 | | - to avoid accidental empty password creations. |
457 | | -* Made the show change size function work on page moves, page creations, and |
458 | | - log entries. Also fixed it in the javascript recentchanges. |
459 | | -* (bug 8239) correctly get 50 new contributions when clicking '(50 next)' |
460 | | -* (bug 2259) Fix old regression where e-mail addresses were no longer |
461 | | - confirmed on login with mailed password. |
462 | | -* Add a notification about the confirmation mail sent during account |
463 | | - creation, so people don't immediately go off to request a second one. |
464 | | -* Add a warning on Special:Confirmemail if a code was already sent and has |
465 | | - not yet expired. |
466 | | -* Add user_editcount field to provide data for heuristics on account use. |
467 | | - Incremented on edit, with lazy initialization from past revision data. |
468 | | - Can batch-initialize with maintenance/initEditCount.php (not yet friendly |
469 | | - to replication environments, this will do all accounts in one query). |
470 | | -* Allow raw SQL subsections in Database::update() SET portion as well as |
471 | | - for WHERE portion. Handy for increments and such. |
472 | | -* User::getOption now accept a default value to override default user values |
473 | | - this makes it consistent with WebRequest::get* methods. Corrected code in |
474 | | - various places accordingly. |
475 | | -* (bug 8264) Fix JavaScript global vars for XHTML mode |
476 | | -* Make $wgSiteNotice value wikitext again, for consistency with editable |
477 | | - MediaWiki:Sitenotice and MediaWiki:Anonnotice. |
478 | | -* (bug 8044) When redirecting from the canonical name of the special page |
479 | | - to the localised one, parameters/subpages are omitted |
480 | | -* (bug 8164) Special:Booksources should use GET for form submission |
481 | | -* Rewrite Special:Booksources to clean up interface and remove redundant code |
482 | | -* (bug 7925) Change Special:Allmessages message name filter javascript to be |
483 | | - a bit more responsive and easier on the CPU |
484 | | -* (bug 4488) Support watching pages on deletion; introduces new user preference |
485 | | -* Minor restructuring of Special:Preferences; "watch pages I edit" and "watch |
486 | | - pages I create" options now accessible under "Watchlist" options |
487 | | -* (bug 8153) <nowiki> doesn't work in site notice |
488 | | -* (bug 6690) wfMsgNoTrans() transforms messages |
489 | | -* (bug 8274) Wrap edit tools in a <div> with a specified class |
490 | | -* Detect PHP 5.0.x 64-bit bug and abort in WebStart.php; too many things break |
491 | | - mysteriously otherwise (detection code copied from install-utils.inc) |
492 | | -* (bug 8295) Change handling of <center> tags in doBlockLevels() to match that |
493 | | - of <div> |
494 | | -* (bug 8110) Make magic ISBN linking stricter: only match ten-digit sequences |
495 | | - (plus optional ISBN-13 prefix) with no immediately following alphanumeric |
496 | | - character, disallow multiple consecutive internal redirects |
497 | | -* (bug 2785) Accept optional colon prefix in links when formatting comments |
498 | | -* Don't show "you can view and copy the source of this page" message for |
499 | | - pages which don't exist |
500 | | -* (bug 8310) Blank line added to top of 'post' when page is blank |
501 | | -* (bug 8109) Template parameters ignored in "recentchangestext" |
502 | | -* Gracefully skip redirect-to-fragment on WebKit versions less than 420; |
503 | | - it messes up on current versions of Safari but is ok in the latest |
504 | | - nightlies. Checking the version number will allow it to automatically |
505 | | - work when new releases of Safari appear. |
506 | | -* Fix regression in thumb styles; size and padding didn't match with |
507 | | - new arrangement. |
508 | | -* (bug 8333) Fix quick user data update on login password change on |
509 | | - replication database setups. User data is now pulled from master |
510 | | - instead of slave in User::loadFromDatabase, ensuring that it is |
511 | | - fresh and accurate when read and then saved back into cache. |
512 | | - This was breaking with the Special:Rename operation which |
513 | | - automatically logs the user in with the new password after changing |
514 | | - it; pulling from slave meant the record was often not the updated |
515 | | - one. |
516 | | -* (bug 8335) Set image width to the first valid parameter found. |
517 | | -* (bug 8350) Fix watchlist viewing bug when using Postgres. |
518 | | -* (bug 6603) When warning about invalid file extensions, output the bit |
519 | | - of the extension we actually checked |
520 | | -* (bug 7669) Drop defaults on BLOB/TEXT columns for better compatibility |
521 | | - with MySQL's strict mode, often enabled by the Windows installer. |
522 | | - The defaults are ignored anyway when strict mode is off... |
523 | | -* (bug 7685) Use explicit values for ar_text and ar_flags when deleting, |
524 | | - for better compatibility with MySQL's strict mode |
525 | | -* Update default interwiki values to reflect changed location of ursine: |
526 | | -* (bug 5411) Remove autopatrol preference |
527 | | -* Users who have the "autopatrol" permission will have their edits marked as |
528 | | - patrolled automatically |
529 | | -* Users who do not have the "autopatrol" permission will no longer be able |
530 | | - to mark their own edits as patrolled |
531 | | -* Introduce 'PingLimiter' hook; see docs/hooks.txt for more information |
532 | | -* (bug 532) Tweaked alt text for some interface messages |
533 | | -* (bug 8231) Gave useful alt text to the main <img> on image pages |
534 | | -* (bug 371) Remove alt text for "Enlarge" icon on thumbnails |
535 | | -* Initialize user_editcount to 0 instead of NULL for newly created accounts |
536 | | -* (bug 3696) Strip LRM and RLM characters from titles to work around the |
537 | | - problem some people have where titles cut-and-pasted from lists include |
538 | | - the bidi override characters appended to the lists. |
539 | | - A more thorough blacklist for forbidden and translatable characters would |
540 | | - be wise, though, as might a cleaner method for the lists in the first place. |
541 | | -* Fix regression in email password resets on read-restricted sites |
542 | | -* Set tabindex on fields in deletion form so you don't have to tab through |
543 | | - the links in the sitenotice |
544 | | -* (bug 8271) Show full time and date on viewer for individual deleted |
545 | | - revisions |
546 | | -* (bug 8214) Output file size limit and actual file size in appropriate units |
547 | | - on Special:Upload |
548 | | -* (bug 8016) Purge objectcache table during upgrade processes - use the --nopurge |
549 | | - option to prevent this when running maintenance/update.php |
550 | | -* (bug 7612) Remove superfluous link to Special:Categories from result items |
551 | | - on Special:Mostcategories |
552 | | -* {{PLURAL:}} now handles formatted numbers correctly |
553 | | -* (bug 8331) Added the change size value to watchlists; therefore made |
554 | | - watchlists use RecentChange::newFromRow() instead of newFromCurRow() |
555 | | -* (bug 8351) Fix undo for simple reverts |
556 | | -* (bug 6856) User::clearNotification() does not respect read-only mode |
557 | | -* (bug 6853) Use a checkbox on the installer form to indicate that a superuser |
558 | | - account should be used; this is clearer than the old check which relied on |
559 | | - the password never being an obscure value |
560 | | -* Remove old unused watchlist cache, which was a leftover from the old schema |
561 | | - where watchlists were more expensive to generate |
562 | | -* Minor cosmetic changes to Special:Userrights |
563 | | -* Added wgCanonicalSpecialPageName to JavaScript variables |
564 | | -* Fix image deleting when using Postgres. |
565 | | -* Output both source and destination titles in maintenance/moveBatch.php |
566 | | -* Added basic parser tests for language variants |
567 | | -* Enable selflinks and categories to be written in some of the language variants |
568 | | -* Prevent conversion of JavaScript code in language variants |
569 | | -* Output software version number in maintenance/parserTests.php |
570 | | -* (bug 7169) Use Ajax to watch/unwatch articles if enabled |
571 | | -* Make variant table caching a little more robust, using main language code |
572 | | - in cache key. Probably this is still a bit wonky, though. Was breaking |
573 | | - parser tests when Chinese tables were getting loaded into Serbian code. |
574 | | -* (bug 8380) Be nicer about blank lines in deleteBatch.php |
575 | | -* (bug 8401) Fix regression in SORBS lookup for some DNS setups |
576 | | -* Use raw file descriptor in posix_isatty() check to avoid warning on |
577 | | - Linux systems with at least some versions of PHP |
578 | | -* (bug 5908) Allow overriding the default category sort key for all items on |
579 | | - a page using {{DEFAULTSORT}} |
580 | | -* (bug 6449) Throw a more definitive error message when installation fails |
581 | | - due to an invalid database name |
582 | | -* (bug 5827) Use full text for option link labels on Special:Watchlist |
583 | | -* (bug 8018) Allow hiding minor edits from the watchlist |
584 | | -* (bug 8427) MonoBook RTL IE 7.0 tweaks failed when sidebar's navigation |
585 | | - section is renamed; no longer relies on first section name |
586 | | -* Stabilize client-side table sorting even if the underlying Javascript sort() |
587 | | - implementation is unstable |
588 | | -* Add hook for extensions to add user information to the panel in preferences, |
589 | | - next to the user name and ID. |
590 | | -* (bug 8392) Display protection status of transcluded pages in the edit page |
591 | | - template list. Patch by Fyren, with i18n naming tweak. |
592 | | -* Fix for interwiki transclusion where target wiki uses query string for title |
593 | | -* Resolve namespaces on interwiki Title objects using canonical namespace names |
594 | | - if possible (should not happen, though, outside interwiki transclusion... and |
595 | | - maybe not even then, but it does) |
596 | | -* (bug 8447) Fix SQL typo breaking non-default $wgHitcounterUpdateFreq |
597 | | -* Do not allow previews of deleted images to be cached |
598 | | -* Add global variable $wgDefaultLanguageVariant used to set the default language |
599 | | - variant of a wiki to something different than the main language code |
600 | | -* Add 'variant' option to parserTests - runs test with the given variant as |
601 | | - preferred, utilize it for more parser tests of language variants code |
602 | | -* (bug 6503) Fix bug that stopped certain irrelevant links from being hidden |
603 | | - for printing |
604 | | -* Avoid PHP warning in Creative Commons metadata when a creative commons |
605 | | - license is not actually set up |
606 | | -* (bug 8463) Don't print external link icons for Monobook |
607 | | -* (bug 8461) Support watching pages on move |
608 | | -* (bug 8041) Work around bug with debug_backtrace when Zend Optimizer is |
609 | | - loaded by skipping the function. Use wfDebugBacktrace() wrapper function. |
610 | | -* Reduce config file clutter by setting various script and upload paths |
611 | | - based on $IP or $wgScriptPath in Setup.php. They can still be explicitly |
612 | | - overridden in LocalSettings.php if desired... |
613 | | -* Attempt to detect redirect loops for the canonical title redirect, and |
614 | | - give some hints to the poor confused administrator. |
615 | | -* Introduce new flag 'R' - raw output for language variant escape tags |
616 | | -* Advise users when updates for a query page have been disabled using |
617 | | - $wgDisableQueryPageUpdate |
618 | | -* (bug 8413) Improve comments for $wgNamespaceRobotPolicies |
619 | | -* (bug 8330) Show "bytes" suffix on recent changes diff counter |
620 | | - optionally... if set in rc-changes-size message (default empty for now) |
621 | | -* (bug 8489) Support basic links in <gallery> caption attribute |
622 | | -* (bug 8485) Correct Lingala number formatting |
623 | | -* The MediaWiki namespace is no longer pre-filled with default messages on |
624 | | - install. All default messages will be removed from the MediaWiki namespace |
625 | | - on upgrade. |
626 | | -* Recentchanges RSS/Atom feeds now use a separate message for the description |
627 | | - to avoid cluttering it with useless wiki formatting |
628 | | -* (bug 8417) Handle EXIF unknown dates |
629 | | -* (bug 8372) Return nothing on empty <math> tags. |
630 | | -* New maintenance script to show the cached statistics : showStats.php. |
631 | | -* Count deleted edits when regenerating total edits in maintenance/initStats.php |
632 | | -* (bug 3706) Allow users to be exempted from IP blocks. The ipblock-exempt permission |
633 | | - key has been added to enable this behaviour, by default assigned to sysops. |
634 | | -* (bug 7948) importDump.php now warn that Recentchanges need to be rebuild. |
635 | | -* (bug 7667) allow XHTML namespaces customization |
636 | | - |
637 | | - |
638 | 30 | == Languages updated == |
639 | 31 | |
640 | | -* Basque (eu) |
641 | | -* Bishnupriya Manipuri (bpy) |
642 | | -* Cantonese (zh-yue) |
643 | | -* Finnish (fi) |
644 | | -* Frisian (fy) |
645 | | -* German (de) |
646 | 32 | * Hebrew (he) |
647 | | -* Indonesian (id) |
648 | | -* Italian (it) |
649 | | -* Japanese (ja) |
650 | | -* Kazakh (kk) |
651 | | -* Kongo (kg) |
652 | | -* Latin (la) |
653 | | -* Limburgish (li) |
654 | | -* Lingala (ln) |
655 | | -* Lithuanian (lt) |
656 | | -* Maltese (mt) |
657 | | -* Maori (mi) |
658 | | -* Norwegian (no) |
659 | | -* Occitan (oc) |
660 | | -* Old Church Slavonic (cu) |
661 | | -* Polish (pl) |
662 | | -* Portuguese (pt) |
663 | | -* Ripurian (ksh) |
664 | | -* Russian (ru) |
665 | | -* Slovak (sk) |
666 | | -* Swedish (sv) |
667 | | -* Taiwanese/Holo: (bug 8217) changed language code to nan (from zh-min-nan) |
668 | | - due to http://www.sil.org/iso639-3/codes.asp?order=639_3&letter=n |
669 | | -* Upper Sorbian (hsb) |
670 | | -* Vietnamese (vi) |
671 | 33 | |
672 | 34 | == Compatibility == |
673 | 35 | |
674 | | -MediaWiki 1.9 requires PHP 5 (5.1 recommended). PHP 4 is no longer supported. |
| 36 | +MediaWiki 1.10 requires PHP 5 (5.1 recommended). PHP 4 is no longer supported. |
675 | 37 | |
676 | 38 | PHP 5.0.x fails on 64-bit systems due to serious bugs with array processing: |
677 | 39 | http://bugs.php.net/bug.php?id=34879 |