Commit graph

3363 commits

Author SHA1 Message Date
Brion Vibber
08b659adbe * (bug 13925) Fix bad HTML on search results list
remove 'start' attribute left over from when we used <ol>
2008-05-01 23:14:11 +00:00
Brion Vibber
ce8925a1a9 * (bug 13820) Fix updater for rev_parent_id population
Was running a command-line entry point from the middle of an updater, which is bad bad bad -- will kill the web installer and may fail on command-line updates, depending on circumstances.
2008-05-01 22:38:22 +00:00
Brion Vibber
3950cc5af1 * (bug 13924) Fix bad HTML on power search form 2008-05-01 22:31:20 +00:00
Brion Vibber
40da2bd661 * (bug 13922) Fix bad HTML on empty Special:Prefixindex and Special:Allpages
Ugh! Somebody please clean up this duplicated code.... allpages and prefixindex have lots of duplicated bits. I swear one used to be a subclass of the other, did they get copied? Or did I do that years ago and forget? :D
2008-05-01 22:07:24 +00:00
Brion Vibber
6b16f44108 * (bug 13905) Blacklist Mac IE from HttpOnly cookies; it eats them sometimes
God I wish this browser would finish dying. :D

The particular situation was that the session cookie was getting eaten as "disabled", thus not sent back to the server so your session state never quite happened. Other cookies on submit seemed to come in intact, but without the session cookie you'd get a big fat error message, even if you set the long-term login cookie option.

Mac/IE seems to always *see* the HttpOnly cookies, but it sometimes marks them as "disabled". It seems to be incorrectly parsing the options after the path, sometimes seeing "/;" as the path instead of "/". Failure is more likely if there's no expiration option (as with the session cookie), or if there *is* a secure option set.

Anyway, just set up a user-agent blacklist $wgHttpOnlyBlacklist and copied the Mac/IE entry over. The HttpOnly setting now gets ignored for blacklist hits as well as for old PHP versions, the check being encapsulated into wfHttpOnlySafe().

Also added some logging for cookie settings, around the setcookie() and session_set_cookie_params() calls.
2008-05-01 20:25:17 +00:00
Alexandre Emsenhuber
465dc8bfc5 (bug 13913) Special:Whatlinkshere now has correct HTML markup 2008-05-01 18:36:08 +00:00
Aryeh Gregor
6bc424de24 (bug 13915) Undefined variable in includes/SpecialWatchlist.php. Patch by Jelte (WebBoy). 2008-05-01 15:27:59 +00:00
Brion Vibber
73a75dbc51 Revert r34029 - "(bug 11659) Urldecode image names in galleries"
The indiscriminate use of urldecode() here breaks image names containing a + character.
2008-04-30 22:05:54 +00:00
Alexandre Emsenhuber
1c732a1c76 (bug 13891) Show categories box even if all categories are hidden and user has "show hidden categories" option on 2008-04-30 21:05:44 +00:00
Brion Vibber
86e2e2fede * (bug 13885) Bump default $wgSVGMaxSize from 1024 to 2048 pixels
Files marked as being larger would be horribly client-side scaled on Image: page inline display for users who set their options up to 1280 or larger. 2048 is still not insanely-huge while still encompassing common screen sizes.
2008-04-30 20:30:00 +00:00
Brion Vibber
57b02329a0 * (bug 13880) "Printable" link in Modern skin now formats as print mode
Problem was that the Modern skin uses a different way of setting up the print stylesheet from the other skins.

Others:
* always include main stylesheet
* override that stuff with print stylesheet for print media or ?printable=yes

Modern:
* include main stylesheet only for screen & projection media only
* add some additional print styles for print media or ?printable=yes

The screen stylesheet was still being used when ?printable=yes is set, but would be hidden when actually printing. I've changed it to now exclude the screen stylesheets when ?printable=yes is switched in, so it looks the same on screen as when actually printing.
2008-04-30 18:29:38 +00:00
River Tarnell
3e996679d9 (bug 13584) New hook: SkinTemplateToolboxEnd 2008-04-30 10:17:51 +00:00
River Tarnell
9f471b8134 (bug 13583) No "poweredby" in Modern skin 2008-04-30 09:58:18 +00:00
River Tarnell
6b7b9f1e27 (bug 13185) No line break after 'subpages' class in Modern skin 2008-04-30 09:53:19 +00:00
River Tarnell
d299ec78c4 13168 accessibility links in Modern skin link to wrong anchor id 2008-04-30 09:36:17 +00:00
Bryan Tong Minh
a98aa7ff20 (bug 11659) Urldecode image names in galleries 2008-04-29 21:50:47 +00:00
Brion Vibber
620527ad0e * (bug 13860) Fix "Justify paragraphs" option for Modern skin
Adds the appropriate id for Modern skin to the set of justify CSS thingies.
This isn't totally satisfactory; the various skins should be refactored to unify this stuff better, but it'll do for now.
2008-04-29 20:48:17 +00:00
Victor Vasiliev
0e1cef2146 * Hide edit section links on Special:Undelete 2008-04-29 14:55:47 +00:00
Aryeh Gregor
d6a075ec1d Update documentation links in auto-generated LocalSettings.php 2008-04-29 01:43:08 +00:00
Victor Vasiliev
cda44a6cdd * (bug 889) Improve conflict-handling between shared upload repository (commons) and local one 2008-04-28 16:28:07 +00:00
Niklas Laxström
ea3374fd83 * (bug 13866) skins/common/shared.css - invalid attribute fixing 2008-04-28 10:24:06 +00:00
Leon Weber
56efd64592 Also adding application/x-dia-diagram to mime.{types,info} 2008-04-27 14:28:29 +00:00
Leon Weber
5677670d27 * * Added 'application/x-dia-diagram' to XML MIME types. Patch by dpy 2008-04-27 13:28:55 +00:00
Brion Vibber
758c80b314 Revert r33911 for now -- causes fatal error death with OggHandler at least.
Probably needs some cleanup to see which of these are actually supposed to be used statically.
2008-04-26 18:16:43 +00:00
Roan Kattouw
80da31e04c (bug 13735) Added prop=categoryinfo module 2008-04-26 15:30:27 +00:00
Alexandre Emsenhuber
4955b32c9d (bug 13643) Fixed some PHP Strict Standards errors 2008-04-26 14:45:00 +00:00
Roan Kattouw
2dac1a9250 API: Make ApiResult::setIndexedTagName_recursive() actually work. This fixes bug 13836 2008-04-26 14:40:54 +00:00
Roan Kattouw
cb77d12c70 API: Fixed handling of usernames containing spaces in list=block 2008-04-26 14:09:16 +00:00
Daniel Cannon
fd1c5daeb1 Adjust RELEASE-NOTES -- previous commit effects shortpages and longpages. 2008-04-24 18:54:28 +00:00
Daniel Cannon
817841a0c2 Special:Shortpages should return pages from all content namespaces, not just NS_MAIN. 2008-04-24 18:50:40 +00:00
Tim Starling
957bff5573 Removed the emailconfirmed group by default, since it is slow when combined with CentralAuth, and not actually used anywhere in the MediaWiki core or Wikimedia. 2008-04-24 00:49:47 +00:00
Brion Vibber
85cf0e0378 * (bug 13824) AJAX search suggestion now works with non-SkinTemplate skins
The setup code was using a MonoBook-specific div ID to insert the results container into. Swapped that for the plain ol' document.body and fixed the styles for MonoBook and Modern so it gets the scale-up fix for the font size (they both use a weird system where they shrink the font size on the body, then scale it back up inside.... very wtf territory!)

Added setup for form and input IDs used for the second search box on Cologne Blue, and copied those IDs over to Nostalgia and Classic skins.

Note that the drop-down is a bit unsatisfactory on the page-bottom search boxes in Nostalgia, Classic, and Cologne Blue, as it tries to squish in at the bottom of the page, and you only get two lines of data. The sidebar search boxes are also not very wide, which makes results pretty cramped.
2008-04-22 22:35:50 +00:00
Brion Vibber
7aec367fe0 Add bug number to notes entry for r33742 2008-04-22 17:25:31 +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
Roan Kattouw
d4c9c438fd (bug 13819) API: exturlusage paging skipped an item 2008-04-22 12:46:00 +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
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
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
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
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
Aryeh Gregor
aa034c3413 Clean up RELEASE-NOTES some 2008-04-18 00:29:26 +00:00
Aryeh Gregor
c7ca1a5551 * Do not display empty columns on Special:UserRights if all groups are changeable or all unchangeable.
* On Special:UserRights, when you can add a group you can't remove or remove one you can't add, a notice is printed to warn you.  This is to avoid confusion like that exhibited at bug 13503; it's a fairly unusual situation in MediaWiki to be unable to reverse your own actions, so a notice seems to be appropriate.  (I changed the userrights-groups-help message to point out the meaning of the extra markup; should it be renamed?  It's a common and kind of annoying problem, we should think up some consistent way of versioning messages.  Start adding numbers to the end?)
2008-04-18 00:23:52 +00:00
Aryeh Gregor
5847d842a4 Allow \C and \Q as TeX commands to match \R, \N, \Z, because the inconsistency annoys me. Patterned off r22477, so I assume this will work, although I guess not on Wikimedia until someone recompiles (which is not exactly critical). 2008-04-17 21:27:59 +00:00
Brion Vibber
2368dd5bf1 * (bug 13768) pt_title field encoding fixed
pt_title field in page_protections was added without a binary marker when used on non-binary schema.
This means you get false matches for ASCII case-insensitive bits, and probably for horribly wrong UTF-8 mish-mashes as well.

Adds an updated to fix the field's encoding to binary, matching all our other title keys,
so you can join and get correct matches.

Revert r33473, which seems to assume that pt_title is supposed to be case-insensitive.
(Even if it was, it woudln't work correctly as written.)
2008-04-17 19:11:36 +00:00
Aryeh Gregor
1c9fc4a560 Remember to update RELEASE-NOTES! 2008-04-17 18:23:28 +00:00
Aryeh Gregor
675f1701c9 The problem also applies to all the other regex special chars: try it out with ., |, etc. Use preg_quote(). 2008-04-17 15:59:49 +00:00