Commit graph

10091 commits

Author SHA1 Message Date
Robert Stojnić
abf726ea02 Re-commit r34072 with some modifications:
* turned off by default (set $wgAdvancedSearchHighlighting to turn on)
* reverted r26269, \b doesn't interact very good with unicode data,
  so it broke highlighting of words that end/begin in nonascii chars
  completely
* small bugfixes in unicode handling, tested in more languages
* $wgSearchHighlightBoundaries need to be set to "" for CJK wikis
* benchmarking: on typical simplewiki data, the code is around 4-5 slower
  (according to noc.wikimedia.org the old code profiles to about 0.8%),
  but can be up to 20 times slower on featured-size articles
* update release notes (also for r33400)
* fix profiling errors in SpecialSearch
2008-05-04 15:31:03 +00:00
Bryan Tong Minh
909203b366 (bug 13945) API: Retrieve cascading protection sources via inprop=protection 2008-05-04 15:10:58 +00:00
Alexandre Emsenhuber
4468951a96 Removed the note about that $wgSharedDB only works for user table 2008-05-04 13:22:22 +00:00
Daniel Friesen
ce334f9732 New variable $wgSharedDBtables. This allows altering of the list of tables which enabling $wgSharedDB affects. For backwards compatibility this is set to an array containing the user table. 2008-05-04 09:00:17 +00:00
Huji
a30a06db32 (bug 13934) Fixing the link to GNU General Public License Version 2 2008-05-04 07:48:31 +00:00
Alexandre Emsenhuber
cd225d19bf Custom rollback summaries now accept the same arguments as the default message 2008-05-03 16:07:57 +00:00
Aaron Schulz
2f3a769ea8 Leave deleted images alone 2008-05-03 15:16:22 +00:00
Victor Vasiliev
e3371526ab * Fix oi_deleted issues with image moving
* Fix filearchive update status check
2008-05-03 14:45:06 +00:00
Bryan Tong Minh
d395b90d04 Mark ForeignDBFile as unmovable 2008-05-03 13:49:53 +00:00
Bryan Tong Minh
cfb420dd40 checkExtesnion => checkExtension 2008-05-03 13:39:10 +00:00
Victor Vasiliev
8d85629c58 * (bug 709) Cannot rename/move images and other media files.
Currently in experimental mode, use $wgAllowImageMoving to enable it.
Known issues:
* Doesn't work with rev_deleted
* May also have some security and caching issues.
2008-05-03 13:09:34 +00:00
Niklas Laxström
da51ea6b44 * Xml:: 2008-05-03 12:27:53 +00:00
Aaron Schulz
b76e7e0db0 Put some upper limit here 2008-05-03 04:17:03 +00:00
Aaron Schulz
31a7332a00 * Add method to append subtitle
* Tweak message
2008-05-03 03:52:33 +00:00
Aaron Schulz
fad822e6e4 We *want* to purge failures 2008-05-02 21:37:53 +00:00
Aaron Schulz
81fac3246d Use getUrl() 2008-05-02 21:32:13 +00:00
Aaron Schulz
bbc214a4ac Don't keep puring squids for images where no thumb is needed (bug 13776) 2008-05-02 21:29:05 +00:00
Aaron Schulz
b516f1db6c Suppress div/0 error 2008-05-02 20:22:10 +00:00
Greg Sabino Mullane
350e828152 Short-circuit true if insert has no rows. 2008-05-02 15:28:10 +00:00
Aaron Schulz
700003a329 $userText 2008-05-01 23:28:49 +00:00
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
Aaron Schulz
6ef48e840e Clean up username 2008-05-01 23:12:37 +00:00
Brion Vibber
3950cc5af1 * (bug 13924) Fix bad HTML on power search form 2008-05-01 22:31:20 +00:00
Victor Vasiliev
c6e6dd0764 Refactor ImagePage::checkSharedConflict() 2008-05-01 22:16:23 +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
Aaron Schulz
dadf1388a1 Do mysql's job for it 2008-05-01 21:55:52 +00:00
Brion Vibber
cfe197d670 revert r34094 for now -- requires index that hasn't been deployed yet 2008-05-01 21:45:03 +00:00
Aaron Schulz
8b813f59b4 * Add a special page to list active users
* Might as well show block status in user list
2008-05-01 21:30:05 +00:00
Aaron Schulz
aabf5c4146 Fix evil index typo 2008-05-01 21:12:11 +00:00
Brion Vibber
723fe778bc Revert for now:
* r34072 -- new highlighter code; looks a bit expensive, not fully tested yet.
* r33489 -- broke search result highlighting all around
* Part of r32350 -- bring the color back to search highlighting so we can see our results again. Why was this removed without comment?
2008-05-01 20:55:03 +00:00
Aaron Schulz
07ba6533a5 wrong use of makeTitle() (bug 13907) 2008-05-01 20:27:09 +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
Robert Stojnić
54dfb7b2ca New class SearchHighlighter handles highlighting of search terms and
snippet extraction:
* prefer text hits over matches on images/templates/tables, making the 
  snippets more readable and relevant
* cleanup wikitext
* prefer snippets with exact query match - works only for whole phrases
* drop the old context calculation and replace it will a more flexible one
  that does a better job keeping snippets of constant width
* if the first line of the article matches whole query show only one snippet
* manually lower/uppercase non-ascii chars so that words in e.g. cyrillic 
  are also case-insensitive
* workaround for php limited utf8 support so that snippets end up being of
  constant char-size over single and multiple byte text
* if there is no text match for some reason, show beginning of the article
Warning:
* haven't done performance testing, might not be safe to go live, although 
  I don't see any immediate problems with it
2008-05-01 13:36:29 +00:00
Aaron Schulz
ee4080ca16 Move group list to $wgSpecialPageGroups to make it easy for extensions to set 2008-05-01 13:03:13 +00:00
Brion Vibber
d16329f311 Make the hack from r33376 conditional...
This'll put the username field back in except where disabled (due to need to fix up indexes on wikipedia sites)
2008-04-30 23:49:28 +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
Alexandre Emsenhuber
b592e487de Added some missing options to $wgDefaultUserOptions and fixed whitespaces 2008-04-30 19:41:14 +00:00
Brion Vibber
a849f6fe57 and eat that unneeded table name var 2008-04-30 17:20:27 +00:00
Brion Vibber
91e7548aee use query constructors; passing hostname string raw into SQL gives me the willies, even if it should always be safe 2008-04-30 17:19:55 +00:00
Greg Sabino Mullane
133c2fcbb2 Call useIndexClause, not raw FORCE INDEX. 2008-04-30 14:36:06 +00:00
River Tarnell
d426f7c5c0 Notice: Undefined property: PostgresSearchResult::$mRevision in /data/home/river/www/wiki/includes/SearchEngine.php on line 518 2008-04-30 09:49:58 +00:00
Brion Vibber
9885ec91c3 Style cleanup on AJAX search suggestion dropdown list.
White borders around the highlighted row are removed by collapsing cell spacing and moving the padding inside.

Now using CSS system colors where supported for background, foreground, and highlight colors instead of hardcoded values. These will fit in better with the native controls, especially when high-contrast themes are in use (say, black background, yellow text, and green highlight... :)

Some caveats...

IE 6 and Firefox 2 on Windows look great.

However, a couple caveats on Mac OS X:

* Firefox 3 looks perfect!

* Firefox 2 and other older Gecko browsers, Opera 9.2, and Safari 3.1 provide the *text selection* colors for Highlight and HighlightText, which differ from the *list selection* colors on Mac OS X 10.2 (?) and later. This is technically wrong for what we want, but will at least match the general color selection.

Note that -moz-mac-alternateprimaryhighlight provides the correct background color on Firefox 2/Mac, but IE 6 and Firefox 2 on other platforms don't properly handle a fallback if it's specified straight in the CSS. We could switch it in with JS, but there's not much reason to I think. It still looks and feels fairly native.

* Safari 3.0 and earlier appear to wildly fail with the system colors, though I can't easily test them. There was an ugly WebKit bug where most of the system colors were implemented wrong; Highlight and HighlightText *both show up solid white*, making your text nicely illegible. Since they're implemented (even though wrongly) you can't even set default colors and let them fall through.

See https://bugs.webkit.org/show_bug.cgi?id=6129

I've worked around this by checking the reported WebKit version in the JS and using an alternate class with the hardcoded colors for anything older than what I see in Safari 3.1 (WebKit 525).


Haven't tested anything on Linux; it wouldn't hurt to do a quick sanity check on Konqueror.
2008-04-30 07:00:02 +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
Alexandre Emsenhuber
9b748e7588 Only load old page_restrictions field if $oldFashionedRestrictions is really null, not also if it's a empty string, wich is passed from Article::loadPageData() in most of cases. This avoid to load twice that field from the database. Thank you, PHP. 2008-04-29 19:18:58 +00:00
Aaron Schulz
274b9ac0ac * No need to *1000
* Hide div-by-zero messages
* Fix kb factor
2008-04-29 15:42:51 +00:00