Commit graph

5096 commits

Author SHA1 Message Date
Tim Starling
f755c6c682 Class to help with debugging inappropriate references to $wgTitle. 2006-02-28 05:19:50 +00:00
Tim Starling
f605082c3d Documentation, plus two accessor functions that might be useful in parser extensions some day. I haven't updated the extensions yet, to maintain their compatibility with old versions of Parser.php. 2006-02-28 05:18:36 +00:00
Tim Starling
8d7d6e92bc documentation 2006-02-28 05:16:31 +00:00
Brion Vibber
a230979d98 * (bug 5062) Width sometimes one pixel short when using maximum heights 2006-02-27 08:38:57 +00:00
Brion Vibber
dddff772d1 * (bug 5086) Force image resize dimensions on ImageMagick, as for instance
"-resize 100x35!"; some thumbs were off due to differences in rounding and
  would be generated smaller than expected.
2006-02-27 00:48:02 +00:00
Niklas Laxström
ad07466c64 Some enhancements to allmessages filter 2006-02-26 23:20:09 +00:00
Rob Church
94b4504457 * (bug 4838) Add relative oldids (prev, next, cur) for raw pages
Patch by Lupin
2006-02-26 16:10:58 +00:00
Brion Vibber
2aaf98ef9d * (bug 5081) Remove bogus fix for invalid characters in links which simply
broke use of legitimate multiple whitespace characters in bracketed link.
Broken by Magnus's revision 1.593 of Parser.php, February 22 2006
2006-02-26 02:25:56 +00:00
Tim Starling
5c8708ae35 Show the job queue length in Special:Statistics 2006-02-26 01:12:47 +00:00
Rob Church
4f17b85e4e Revert Tim's changes to category links, owing to the wave of people objecting and his comment to revert if desired. 2006-02-25 17:23:23 +00:00
Domas Mituzas
433ded5bda allow to disable schema checks - those acquire giant locks on table opens.. 2006-02-25 13:47:11 +00:00
Tim Starling
deada22846 profiling 2006-02-25 03:01:21 +00:00
Tim Starling
7098564cca Fixed SQL error, keep track of job_id 2006-02-25 01:38:06 +00:00
Tim Starling
5bed313c7f Avoid circular links updates 2006-02-25 01:31:07 +00:00
Tim Starling
174264806c Different pop method 2006-02-25 01:12:35 +00:00
Tim Starling
c9fb5e475d If there's a duplicate, don't delete and recreate, just leave it. 2006-02-25 00:29:15 +00:00
Tim Starling
7561eba197 The live immediateBegin hack didn't actually do anything, removing. 2006-02-24 23:51:01 +00:00
Niklas Laxström
da3f2c9e8c Fix my previous commit so that it might even work 2006-02-24 21:51:41 +00:00
Domas Mituzas
89ae8b1d49 * live immediatebegin hack
* remove ORDER BY for pop operation, InnoDB sorts by PK anyway, MyISAM would work as 'pool' rather than 'stack',
  submited to http://bugs.mysql.com/bug.php?id=17711
2006-02-24 20:38:46 +00:00
Niklas Laxström
dcc32272ef * Javascript filter for Special:Allmessages 2006-02-24 18:43:32 +00:00
Tim Starling
0c1fb32f6e profiling 2006-02-24 07:50:23 +00:00
Tim Starling
8aa182976c bug 2006-02-24 07:49:36 +00:00
Tim Starling
eeb84cce20 Added job table, for deferred processing of jobs. The immediate application is to complete the link table refresh operation when templates are changed. 2006-02-24 01:56:31 +00:00
Tim Starling
a1f0bb5801 Make links to categories in the catlinks box blue whether the target page exists or not. 2006-02-24 01:38:06 +00:00
Niklas Laxström
97c0fadc6a Fixfix 2006-02-23 20:18:49 +00:00
Niklas Laxström
a7505905c4 * Make Live Preview an user preference, still controllable by the global variable 2006-02-23 20:03:51 +00:00
Rob Church
17f91c37ba (bug 4535) Warn user when editing CSS or JS subpage of a skin that doesn't exist 2006-02-23 14:37:51 +00:00
Rob Church
4a24d6dfe8 (bug 4970) Make category paging limits configurable 2006-02-23 00:39:52 +00:00
Rob Church
ecf64cb9bf (bug 4974) Don't follow redirected talk page on "new messages" link 2006-02-22 22:17:25 +00:00
Rob Church
60ea873937 Fixed up that buggered commit so Brion won't stab me. 2006-02-22 21:50:09 +00:00
Rob Church
1ad32d7831 Bollocks, something's wrong with that - it's buggered up the link when account creation is allowed, too. Reverting for now; will recommit when fixed. 2006-02-22 21:40:30 +00:00
Rob Church
6001a3a0d0 (bug 4319) Don't show a "create account" link on the login form when account creation is disabled. 2006-02-22 21:37:18 +00:00
Magnus Manske
cc94cc77ae Fix for parser test "Magic links: PMID incorrectly converts space to underscore" 2006-02-22 09:11:59 +00:00
Magnus Manske
f7705e25e5 fix for external links:
[url  text] (notice two or more spaces) now breaks according to parser test
I liked the previous behaviour better, but it doesn't strictly conform to wiki syntax
2006-02-22 09:05:25 +00:00
Magnus Manske
e353d4d94c "table with no data" fix 2006-02-22 08:37:14 +00:00
Tim Starling
aa2bde93b9 Maximum article size, since max_allowed_packet is too large on wikimedia these days to form an effective limit. 2006-02-22 00:55:25 +00:00
Niklas Laxström
f17362f93b * Fixed and enhanced a little the Live Preview, which had been broken for some time 2006-02-20 21:18:11 +00:00
Tim Starling
2d5e24089d Let wikidiff2 do its own segmenting 2006-02-20 06:12:12 +00:00
Domas Mituzas
e86273163e add knob for persistent MC connections 2006-02-19 09:55:20 +00:00
Brion Vibber
1ac043b6c8 * Fix explicit s-maxage=0 on raw pages; should help with proxy issues in
generated stylesheets... hopefully...
2006-02-18 23:58:49 +00:00
Brion Vibber
78fd3f53a9 * More exact checking in Title::equals() to fox moves of numerically similar
page titles. (Odd hex title bug on 64-bit.)
2006-02-18 19:41:01 +00:00
Niklas Laxström
85ca43d2ee * Restriction types now use restriction-* messages instead of ui messages
* Don't try to link to current page on protection tab
2006-02-18 15:07:02 +00:00
Rob Church
f2baf71878 Introduce $wgWantedPagesThreshold per bug 5011; Special:Wantedpages will not list pages with less than this number of links. Defaults to 1. 2006-02-18 04:39:20 +00:00
Brion Vibber
644f8a0acc * Remove legacy PHPTal code, hasn't been maintained in ages.
* Tweak UserLogin include order for APC issue
2006-02-18 04:34:10 +00:00
Brion Vibber
27e3ec2919 * Avoid corrupting <gallery> inside <!-- comment --> 2006-02-18 01:50:12 +00:00
Brion Vibber
8dd2ee8057 * Fix missing bad title check in Special:Booksources
* Remove empty booksources string in fy
2006-02-18 01:09:45 +00:00
Rob Church
fa8c12a6e7 Paranoia 2006-02-17 16:57:46 +00:00
Rob Church
47944d1d3b (bug 5018) Anchors for each message in Special:Allmessages 2006-02-17 16:39:31 +00:00
Tim Starling
630221288a check if the wikidiff2 function exists after loading the extension, in case the extension is corrupt 2006-02-17 04:49:13 +00:00
Rob Church
a4afe3a91a (bug 5013) Check for existence on "return to" links 2006-02-16 22:29:53 +00:00
Brion Vibber
84ed913304 Add final newline for consistent display and to fix the </textarea> when text empty 2006-02-16 22:08:02 +00:00
Brion Vibber
2f94b96f43 * Fix double-escaping of title in preview form
* Use the right message for the preview button
2006-02-16 21:41:56 +00:00
Brion Vibber
5c13a000ce * (bug 4502, 5017) Don't render potentially hostile deleted page contents
on Special:Undelete by default; show source, with an optional preview.
  The revisions list no longer shows the latest text by default, so it can
  still be operated if the text is hostile.
2006-02-16 20:53:45 +00:00
Niklas Laxström
936a4aaadc Every time I see checkbox God kills a kitten, needs a hack 2006-02-15 22:34:07 +00:00
River Tarnell
2b1a231102 trailing whitespace is unhappy 2006-02-14 22:36:25 +00:00
Brion Vibber
bb7fd21511 * Unknown log types no longer throw notices everywhere in RecentChanges
This has been driving me nuts when disabling extensions with custom log types.
2006-02-14 21:24:48 +00:00
River Tarnell
5cbdb9f4e5 rename getTalkPages to getNewMessageLinks, use wfmsghtml for seperator (brion) 2006-02-14 21:20:38 +00:00
River Tarnell
e603747352 hooks for shared new talk notifications 2006-02-14 21:10:31 +00:00
Brion Vibber
d8261b3970 * Blocking some Unicode whitespace characters in usernames. Should check
if some or all should be blocked from all page titles.
2006-02-13 07:29:27 +00:00
Tim Starling
35438cbe91 options to insertSelect(), indenting 2006-02-12 02:20:32 +00:00
Tim Starling
b228db6f1d Hide own edits from RC, mostly by Jason. No show/hide link by default, you need to add it in if you want it. 2006-02-11 12:28:50 +00:00
Tim Starling
01a2998b95 preload hook 2006-02-11 11:41:46 +00:00
Tim Starling
3e74cd1359 Allow cookies to be shared between multiple wikis with a shared user database. 2006-02-11 07:41:31 +00:00
Erik Moeller
ea4dcc71d2 doc 2006-02-10 09:37:46 +00:00
Erik Moeller
e8248d94e0 very basic support for requiring email authentication before allowing users
to edit
2006-02-10 09:34:31 +00:00
Tim Starling
7f4e189593 Added support for wikidiff2 and similar external diff engines. 2006-02-09 13:04:20 +00:00
Tim Starling
93f0ae4eed Bug 4916: Make localised text (notably the word "line") work with the diff cache. Doing it this way means it will work with the external diff engine as well. 2006-02-08 22:56:55 +00:00
Rob Church
340c519c61 partial bug 3456) Disable auto redirect to Main Page after account creation 2006-02-08 04:58:45 +00:00
Magnus Manske
4b512f31d2 Fix for parser test error "Image link to nonexistent file (bug 1850)", both "good"
and "bad"
2006-02-07 17:50:25 +00:00
Tim Starling
089357da44 Investigated tidy deadlock allegations, couldn't reproduce. 2006-02-07 11:05:00 +00:00
Tim Starling
be67dfd2d1 rc_timestamp >= $cutoff instead of rc_timestamp > $cutoff, so that duplicates may be shown but entries are never missed. 2006-02-07 05:24:00 +00:00
Brion Vibber
cc51b19981 * (bug 4842) Fix 'show number of watching users' with enhanced RC 2006-02-07 03:58:49 +00:00
Tim Starling
2fc4490049 Proper windows escaping in wfEscapeShellArg() 2006-02-06 23:50:45 +00:00
Magnus Manske
ee35f8c68c Fixing parser errors "no data" and "nothing but a caption".
This fix is cleaner than the first one; hopefully the test unit will recognize it
 this time...
2006-02-06 15:47:14 +00:00
Rob Church
24a463ab5f Introduce "semiprotectedpagewarning" which appears when a user edits a page that requires autoconfirmed permissions to edit. Note that other protection levels will take precedence over this; the regular "protectedpagewarning" will show in these cases. 2006-02-06 09:49:28 +00:00
Tim Starling
55fa614fe8 Report errors from ImageMagick convert back to the user. Specify output bit depth when calling convert, for those people who are using an inefficient Q16 binary for scaling (i.e. almost everyone). Tweaked -quality. 2006-02-06 05:19:46 +00:00
Tim Starling
df09b7b2cc make wfShellExec() work on windows a bit better 2006-02-06 05:14:58 +00:00
Rob Church
7f01915163 Grrr...remove duplicate $, thanks Niklas 2006-02-05 22:59:53 +00:00
Rob Church
46c780b136 Fix broken contribs link in block log 2006-02-05 22:54:12 +00:00
Rob Church
aa4f7f8ac1 (bug 4860) Expose Title->userCan() as Hooks 2006-02-05 18:47:40 +00:00
Rob Church
b506512bda (bug 4875) Define a div containing the shared image description 2006-02-05 18:32:55 +00:00
Brion Vibber
71fc4d3f85 * (bug 4867) Leave invalid EXIF date fields unformatted instead of
showing a bogus current timestamp
2006-02-05 01:07:28 +00:00
Rob Church
b941e5395d Add warning for anon. edits 2006-02-04 18:42:43 +00:00
Magnus Manske
f66128505d Fix for parser test "A table with no data" 2006-02-03 18:22:53 +00:00
Brion Vibber
60d5263827 * (bug 3347) strip linebreaks in math error source 2006-02-03 06:36:05 +00:00
Brion Vibber
3ecba85408 * (bug 4303) Add $wgFavicon to change the shorticon icon link from
the default /favicon.ico or disable it (if set to false)
  Patch by nekocue
2006-02-03 04:04:05 +00:00
Tim Starling
8949e26400 Bug 4549. "Temporary" means that it's cleared in parse() or some other frequently-called member function, which those two variables clearly weren't. They were in fact persistent. They should have been state variables. Also removed obsolete and unused transclusion code, which would have suffered the same problem if it was used. 2006-02-02 13:42:50 +00:00
Tim Starling
b9766fe1e3 More robust directory structure migration, should fix bug #2532, except for Brion's complaint that the directory structure should be completely different, which he is free to fix in his own time. 2006-02-02 07:07:39 +00:00
Brion Vibber
be110d3759 typo in diff feed style 2006-02-02 03:40:16 +00:00
Tim Starling
61bc10203f Various improvements to interwiki transclusion. Introduced {{raw:..}}, to force raw transclusion when subst: isn't in use. Referer header set in wfGetHTTP(), this could be for weak (honour-bound) detection of the external site, for statistics or license notices. 2006-02-01 04:41:53 +00:00
Tim Starling
9e0ee5e640 documentation, code cleanup 2006-02-01 04:34:47 +00:00
Tim Starling
742ab02669 Feature karma: removing a useless feature that I recently committed. 2006-01-31 04:10:01 +00:00
Tim Starling
8da9fca6c0 Fixes and improvements to interwiki transclusion:
* allow interwiki {{subst:...}} using action=raw fetches
* Allowed non-MSIE browsers to access action=raw via the article alias. This is necessary to allow action=raw transclusion, since the only known URL is the article path, not the script path.
* Specify a user agent in wfGetHttp() fetches, when using curl.
* Added transcache table to tables.sql, it was in the updater but not there for some reason.
* Fixed transcache expiry, added option
* Allow interwiki transclusion outside the template namespace using leading colon syntax. Syntax is counterintuitive at times, e.g. to subst the wikipedia main page you would use {{subst::Wikipedia:Main_Page}} not {{subst:Wikipedia::Main_Page}}.
2006-01-31 03:44:08 +00:00
Antoine Musso
38814e5570 Update documentation URL 2006-01-30 22:52:34 +00:00
Domas Mituzas
4ab130b023 remove memcached polution ... ah, and namespace notices on the way 2006-01-30 15:40:46 +00:00
Brion Vibber
ac57f44250 * (bug 1284) Inline styles for diffs in Recent Changes RSS/Atom feeds
In a perfect world, HTML would have a version of the <style> element
which applies only to its own contents and is allowed in the body.
Or, secondarily, XSLT could be much much easier to use.
2006-01-30 03:34:23 +00:00
Rob Church
12683a093e Clean up code in, and add contributions link to block log items 2006-01-29 23:24:01 +00:00
Brion Vibber
1e5da17de5 * Adjust user login/creation form hooks to work with a captcha plugin 2006-01-29 07:35:28 +00:00
Magnus Manske
1a1612fdfd Fix for bug 4783 : {{ns:0}} does not render 2006-01-28 21:44:57 +00:00
Magnus Manske
fa214f77d9 Namespace notice (fix for bug 4469) is back:
Namespace-specific notice to be displayed below site-notice. Edit messages like "MediaWiki:Namespacenotice-" plus namespace name, which is blank for main namespace, or like e.g. "User_talk".
2006-01-28 17:36:08 +00:00
Brion Vibber
c2ca497c2a * Include timestamp in wfDebugLog breakouts 2006-01-28 11:42:35 +00:00
Tim Starling
cf7ecb630d Forgot to add the new link tables to Article::doDeleteArticle() 2006-01-28 00:35:34 +00:00
Tim Starling
34912bff40 Maintenance script to find and remove links to a given domain (cleanupSpam.php) 2006-01-27 23:37:19 +00:00
Tim Starling
eb53cc0856 * Added externallinks table, to track links to arbitrary URLs
* Convert unnecessary URL escape codes in external links to their equivalent
  character before doing anything with them. This prevents certain kinds of
  spam filter evasion. (Parser.php only)
2006-01-26 13:29:14 +00:00
Tim Starling
df8f752a72 Fixed Special:Unlockdb, had been broken since 1.5beta1 2006-01-26 07:02:53 +00:00
Domas Mituzas
cede31f892 do not trust equality propagation, help optimizer a bit ;-) 2006-01-25 20:50:39 +00:00
Rob Church
a57c34a038 Add Special:Listredirects to list of query pages; wasn't being cached 2006-01-25 15:09:52 +00:00
Tim Starling
304fa750a8 Added $wgInvisibleGroups, to hide groups from Special:Listusers 2006-01-25 12:01:26 +00:00
Domas Mituzas
95a740e0b1 remove some more profiling hooks from commonly used calls 2006-01-25 11:25:56 +00:00
Domas Mituzas
d43e743074 remove profiling hooks from hooks ;-) 2006-01-25 10:51:12 +00:00
Zheng Zhu
57fdee899c Fix dependence on hardcoded UNIQ_PREFIX. 2006-01-24 18:36:45 +00:00
Domas Mituzas
e8d09daa6d ergh, yet more direct parser bits, ask for tidy when post-edit saving to parser cache 2006-01-23 22:32:44 +00:00
Domas Mituzas
e9f40e54a4 allow to enable full tidy 2006-01-23 20:57:57 +00:00
Domas Mituzas
c2d5bc9e0e fix previews 2006-01-23 20:44:56 +00:00
Brion Vibber
5185b09395 * (bug 4686) Fix regression where ?diff=0&oldid=0 caused fatal error on
pages with only one revision. Fixes message diff link on first edit.
2006-01-23 19:41:03 +00:00
Domas Mituzas
b12afe92bd whitespace, use member variable instead of function 2006-01-23 19:05:09 +00:00
Domas Mituzas
2d23e2a977 Tidy up only article views, previews, image pages and diffs. 2006-01-23 18:37:46 +00:00
Domas Mituzas
491173a7e7 *g*, bypass lag checks for external store (as it already fallbacks to master) 2006-01-23 15:28:17 +00:00
Domas Mituzas
3488efe876 allow bypassing lag checks 2006-01-23 15:27:44 +00:00
Rob Church
483bc79776 * (bug 4633) Add (previous 200) (next 200) also above catlinks 2006-01-22 23:10:56 +00:00
Ævar Arnfjörð Bjarmason
ec2b295ba5 * wfGetSiteNotice() gets called on DB errors (wtf?) so depending on $wgUser
which depends on the database for this executing successfully is not a very
  good idea...
2006-01-22 12:38:13 +00:00
Brion Vibber
3a2d55705a * Suppress useless percentage indicator on output from 7za during dumps 2006-01-22 07:03:03 +00:00
Rob Church
e758e6c2a1 Whoops, URL encoding (ta Brion) 2006-01-22 01:12:19 +00:00
Rob Church
0661a668e6 * Don't show a block link if the user doesn't exist/isn't a valid IP (e.g. MediaWiki default)
* Link to block log
2006-01-22 00:30:01 +00:00
Rob Church
d4754960a1 Add block link to Special:Contributions 2006-01-21 23:08:34 +00:00
Domas Mituzas
448b460bbd sneak preview of split language file 2006-01-21 22:24:23 +00:00
Rob Church
0edae83c59 Comment $wgDebugDumpSql 2006-01-21 21:57:02 +00:00
Rob Church
142b9d8b1f Check for "block" permission, not "protect" permission, when determining whether or not to show a block link in the toolbox 2006-01-21 20:29:17 +00:00
Domas Mituzas
5e13736e57 typo 2006-01-21 17:08:41 +00:00
Domas Mituzas
03655d45d8 don't look at this diff, it is too lame ;) 2006-01-21 16:50:22 +00:00
Domas Mituzas
ba0bcdefba oops, $this and some globals 2006-01-21 16:44:46 +00:00
Domas Mituzas
033896c0f9 local cdb-based interwiki cache 2006-01-21 16:23:45 +00:00
Brion Vibber
68f8fd1769 * (bug 4679) Work around buggy basename() function in PHP5, which breaks
uploads of files starting with multibyte characters on Linux.
  wfBaseName() doesn't suffer this bug, and understands backslash on
  both Unix and Windows.
2006-01-20 09:03:16 +00:00
Tim Starling
77c17910a9 Make Revision::getPrevious() and Revision::getNext() return null if there are no more revisions to fetch in that direction. They previously just started from the current revision again. 2006-01-19 17:12:37 +00:00
Tim Starling
bd738ff55b give the correct error message when an article doesn't exist 2006-01-19 17:10:57 +00:00
Brion Vibber
3dd56202e1 use wfRegexReplacement() which was added a little while ago to cover this silly regex case 2006-01-19 06:29:41 +00:00
Tim Starling
7404ba829a check if Revision::getText() returned without an error 2006-01-19 04:52:18 +00:00
Tim Starling
31262fdf29 Don't try to inflate or unserialize an error flag 2006-01-19 03:59:20 +00:00
Tim Starling
c8b679135c Try the master if a blob is not found in the slave 2006-01-19 03:55:03 +00:00
Rob Church
e5db8ebf57 Remove gratuitous extract( ) from getSQL -> might as well use the direct function 2006-01-18 16:17:15 +00:00
Rob Church
c2dd235849 Bug 4429: "Protect" tab in page header 2006-01-18 03:24:21 +00:00
Rob Church
b7ea6808df Fix redlinks where targets don't exist 2006-01-18 02:19:44 +00:00
Rob Church
7aea55023b Revert to un-borked version, sorry Brion 2006-01-18 00:04:30 +00:00
Brion Vibber
b380b0a76a * Add ".deps.php" include-file preloaders for some dynamically-loaded
language and skin classes. Should help with the broken base-class
  problem under PHP 5 with APC as opcode cache. See details:
  http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html
2006-01-17 23:43:15 +00:00
Rob Church
b3abf3b74b Fix false blue links on Special:Ipblocklist 2006-01-17 21:53:37 +00:00
Tim Starling
31487e5784 removed misfeature (ignore writes while in read only mode): more trouble than it's worth 2006-01-17 16:16:43 +00:00
Tim Starling
95ad85012e Removing leecruft. No, you sure as hell couldn't defer it. 2006-01-17 13:24:00 +00:00
Tim Starling
0996a43a27 oops, bug in untested error branch 2006-01-17 12:14:27 +00:00
Tim Starling
cf4f3da185 Moved the bulk of dbsource() to Database.php. Added support for updating wikis with $wgSharedDB set (installing is still not supported) 2006-01-17 11:48:18 +00:00
Tim Starling
c9253061f2 Fixed incorrect query() parameters, left over from the brief period of time when wfQuery took a DB index as a parameter 2006-01-17 08:40:16 +00:00