Commit graph

9971 commits

Author SHA1 Message Date
Roan Kattouw
418effe71e E_NOTICE 2008-04-22 18:43:22 +00:00
Brion Vibber
c357843ef6 Fix event hooking for suggest.
Works around bug with custom search form destinations on Wikipedia; multiple event handlers for form submission were overwriting each other
2008-04-22 18:04:49 +00:00
Brion Vibber
6a8177178b Revert r33725, r33726 (hook in Sanitizer::fixTagAttributes()).
This hook is just plain weird.
* Return value on abort destroys the entire data set
* Whitespace is bad
* It's very unclear what this would be used for
* This is a low-level function that's going to get called very often, and the hook is in a place that has little clear function. It's unclear what a general hook would want to do with it.
2008-04-22 17:29:41 +00:00
Aryeh Gregor
1fa19645a9 Fatal error on some pages when calculating subpage subtitle, reported in #wikimedia-tech 2008-04-22 16:34:43 +00:00
Raimond Spekking
18985bff89 Let's remember the mantra: Escaping is wise. Thanks to Nikerabbit :) 2008-04-22 15:03:11 +00:00
Andrew Garrett
ea8b7bf184 Commit the whole fix, not just the documentation from previous commit. 2008-04-22 13:03:11 +00:00
Roan Kattouw
d4c9c438fd (bug 13819) API: exturlusage paging skipped an item 2008-04-22 12:46:00 +00:00
Raimond Spekking
fe7abeca08 Convenience tweaks:
* Change link of groupname to the project group page
* Add explicit link to Special:listusers. New message: 'listgrouprights-members'
2008-04-22 09:01:04 +00:00
Raimond Spekking
63ccbb331a * Move hardcoded text "Diff:..." to new message 'missingarticle-diff'
* Move hardcoded text "oldid=..." to new message 'missingarticle-rev'
* Remove variable $t from message 'noarticletext' as it has no parameter $1
2008-04-22 06:10:01 +00:00
Aaron Schulz
5d2ee948f2 Don't make extensions have to play around with NS_MEDIA 2008-04-22 01:06:51 +00:00
Aryeh Gregor
ce49847053 (bug 13816) Filter by main namespace doesn't work on WhatLinksHere. Guess why? Weak PHP typing! I want to assemble a list of all these bugs as a concrete example of why PHP sucks. 2008-04-22 01:05:15 +00:00
Aaron Schulz
aa2b75a26b Pass title by ref to consistently override the whole thing. Image pages where acting oddly with Media: urls, thinking the page didn't exist when it did. 2008-04-22 00:56:58 +00:00
Aaron Schulz
93f97a6712 Actually color replace on the right prefixed text 2008-04-21 23:15:17 +00:00
Aaron Schulz
da45109f74 Clean this up a bit 2008-04-21 23:10:20 +00:00
Aaron Schulz
b1d16453d8 Use prefixedText(), rather than IRC clean text for replace call on comment to make blue color (bug 13662) 2008-04-21 22:59:54 +00:00
Alexandre Emsenhuber
1597de7ba7 Fixed HTML error when there isn't any unsettable right (XML Parsing Error: mismatched tag. Expected: </tr>. Line Number 109, Column 3.) 2008-04-21 18:36:52 +00:00
Aaron Schulz
9d4e81a840 Better variable name 2008-04-21 04:40:41 +00:00
Aaron Schulz
27e2a6834a Add rcid for new unpatrolled pages 2008-04-21 03:20:08 +00:00
Aaron Schulz
e7ef014f9a Lets include the prefix folks 2008-04-21 00:53:13 +00:00
Aaron Schulz
a1515f6ee5 FORCE should only apply when no group given 2008-04-20 23:57:30 +00:00
Aaron Schulz
7aa77ab15c Remove filesort from EXPLAIN 2008-04-20 23:46:03 +00:00
Aaron Schulz
a99add1f89 More cleanup and simplifications 2008-04-20 21:47:12 +00:00
Aaron Schulz
3617827b91 Use $key for the url param 2008-04-20 21:39:06 +00:00
Aaron Schulz
5b9f20a28e Handle bad oldids more gracefully 2008-04-20 21:26:42 +00:00
Aaron Schulz
705514d3a7 Make a single restore link for multi-rev revisiondelete entries 2008-04-20 21:14:44 +00:00
Alexandre Emsenhuber
8e82a7029e (bug 13796) Show links to parent pages even if some of them are missing 2008-04-20 18:53:46 +00:00
Siebrand Mazeland
bfc3734308 Remove getKeys(). Unused in core and extensions in SVN. 2008-04-20 18:52:24 +00:00
Domas Mituzas
a370176b62 ProfilerSimpleText needs loading! 2008-04-20 16:17:46 +00:00
Aaron Schulz
70e313f8f2 NS_MEDIA fix for old parser too 2008-04-20 15:20:09 +00:00
Aaron Schulz
3b59a4709c Remove old nonsensical code 2008-04-20 14:31:02 +00:00
Aaron Schulz
165cfc590a * Clean up IRC feed
* Remove some unused vars
2008-04-20 14:24:10 +00:00
Aaron Schulz
42ef6b6585 Fix NS_MEDIA link handling 2008-04-19 21:29:19 +00:00
Alexandre Emsenhuber
0acb976760 Don't throw a fatal error if somebody access Special:Whatlinkshere without target page 2008-04-19 18:45:42 +00:00
Niklas Laxström
dfdede75f1 * This function is not used anymore 2008-04-19 18:01:05 +00:00
Niklas Laxström
959825af49 * Use FormOptions in WhatLinksHere 2008-04-19 17:40:36 +00:00
Niklas Laxström
1c20683d88 * New helper class for dealing with forms 2008-04-19 17:38:06 +00:00
Bryan Tong Minh
8e2b8417e8 (bug 13792) Broken titles are now silently skipped in API search results. 2008-04-19 17:24:38 +00:00
Victor Vasiliev
454cec74a1 * (bug 13793) Special:Whatlinkshere filters wrong - after paginating instead of before 2008-04-19 16:46:45 +00:00
Niklas Laxström
015184c6f8 * Split output formatting away from the mile long function 2008-04-19 14:36:04 +00:00
Niklas Laxström
cab3560abc * Shortcut for common use case 2008-04-19 13:51:01 +00:00
Alexandre Emsenhuber
a4e6be8f16 Per r33580: Bump $wgStyleVersion 2008-04-19 09:17:32 +00:00
Brion Vibber
120cbf4864 Revert r33565 pending some cleanup...
A few notes:

* This seems to drop the 'action=success' page in favor of dumping all the output directly on the POST response. That's probably necessary, but tends to cause annoyances with back/forward navigation (warnings about re-POSTing data etc)

* The subpage checkbox is shown on the form based only on the target page's namespace. This means it'll show for the vast majority of, say, talk pages which don't have any subpages. To be consistent with the talk namespace, it should be kept hidden if there aren't any.

* Subpages may exist for a talk namespace while not existing for the article namespace. When moving an article with its talk, and the talk has archive subpages, it would probably make sense to do the moves -- but no check will show here due to the check only on the article space.

* There's a couple copy-pasted instances of $something ? ' checked="checked"' : '' ... since these are passed to a function looking for a boolean, they should just use the boolean $something. :)

* I see some unnecessary uses of =& ... this is a PHP 4-ism and not needed here.

* This query's kind of creepy:

SELECT /* MovePageForm::doSubmit WikiSysop */
page_id,page_namespace,page_title  FROM `page`  WHERE 0 = 1  

* Generally speaking, there may be a _lot_ of subpages. English Wikipedia Main_Page will net you 169 total including itself, talk, and all subpages. How safe is it to move potentially thousands in one request here?
2008-04-18 23:53:03 +00:00
Aryeh Gregor
b6d49825b0 Users moving a page can now have all subpages automatically moved as well. Done by request of the people in #wikibooks; this is apparently a much-desired thing there (for, I guess, obvious reasons :) ). This took longer than I thought and is somewhat hackish in places, so it could maybe use a bit of polish. 2008-04-18 20:40:47 +00:00
Aryeh Gregor
bb5a2f5aba * Allow the "log in / create account" link in the toolbar to have different text from Special:UserLogin title (new message 'nav-login-createaccount')
* Say "log in / create account" if an anonymous user can create an account, otherwise just "log in", consistently across skins.  (Currently Monobook always says "log in / create account " and non-Monobook always says "log in".)
2008-04-18 15:46:54 +00:00
Aryeh Gregor
5c753e7728 (bug 12698) Create PAGESIZE parser function, to return the size of a page. Quite possibly this is getting out of hand; in that case, revert. Patch based on one by CBM/carl-m. 2008-04-18 15:01:04 +00:00
Aryeh Gregor
eebef8104f Re-eliminate the fatal error I reintroduced in my last commit 2008-04-18 14:42:24 +00:00
Aryeh Gregor
82a87bd33c * Add Parser::incrementExpensiveFunctionCount() and use it in CoreParserFunctions::getcategorycount(); refactor slightly so that formatRaw is called even for 0 (do any languages format that differently? maybe if they use non-Arabic numerals?). From bug 12698, by CBM.
* Add a cache so that calling getcategorycount for the same category many times won't stupidly repeat the same query over and over.  Currently an early return avoids incrementing the expensive function count in this case, so technically this makes things *slower*, not faster, but that can be tweaked if anyone cares.
2008-04-18 14:34:38 +00:00
Aryeh Gregor
6b89e9e50b Comments, code simplification 2008-04-18 14:19:00 +00:00
Aryeh Gregor
81130fd860 Fix fatal error on calling PAGESINCATEGORY with invalid category name; Category::newFromName does not always return an object! 2008-04-18 14:04:46 +00:00
Niklas Laxström
2b6cfa578c * Expiry handling is really sub-optimal here 2008-04-18 06:57:47 +00:00