Commit graph

315 commits

Author SHA1 Message Date
Domas Mituzas
3d09e823c0 add profiling hooks at quite critical place (accounting parser usage by skin) 2006-07-16 08:16:58 +00:00
Domas Mituzas
16d11c1bdd add statistics hook for parser cache statistics... 2006-07-15 19:36:06 +00:00
Antoine Musso
65290ec3b6 Fix ugly hack. Assume PHP5 does a nice job with references. 2006-07-11 17:46:30 +00:00
Antoine Musso
ab8b197963 Some new strictness with PHP5 2006-07-11 14:03:17 +00:00
Brion Vibber
ffb37bdfff * Don't put empty-page message into view-source when page text is blank 2006-07-07 22:15:44 +00:00
Rob Church
a2c80fa4db (bug 4990) Show page source to blocked users on edits, or their modified version if blocked during an edit 2006-06-24 20:58:10 +00:00
Tim Starling
8752794cc4 Check for bad title in returnToMain() 2006-06-23 06:53:05 +00:00
Tim Starling
982637b93a Added check for newlines in redirects as a paranoia guard against header injection in PHP<5.1.2. Removed OutputPage::addHeader(), has been non-functioning for as long as I can remember. 2006-06-23 03:56:03 +00:00
Tim Starling
f464fa0e84 Saner handling of title objects in OutputPage::returnToMain() 2006-06-21 16:28:04 +00:00
Brion Vibber
6c6b3b8083 Temporarily revert 14847; makes incompatible changes to message strings. 2006-06-20 18:20:58 +00:00
Rotem Liss
1fb3d373a9 * Using the "returnto" in the login link in additional messages, and creating a function (Linker::loginLink) to create it.
* Removing "whitelistreadtitle" and "whitelistreadtext", which seem to be unused.
* Removing the self login link in the create account not allowed screen, as it is not useful.
* Fixing "loginreqlink" in Hebrew.
* Fixing various small bugs about these error pages.
2006-06-20 16:08:38 +00:00
Brion Vibber
74dbd01ed0 Clean up after r14751:
* No longer spews "uninitialized variable" notice all over output during category preview
* Don't alter global configuration variables when there's no reason to
Note that __NOGALLERY__ still isn't respected on preview (was this even tested?)
2006-06-13 18:35:11 +00:00
Magnus Manske
7f2155fa9e Bug 6031 (feature request for __NOGALLERY__ on category pages) fixed 2006-06-13 11:37:09 +00:00
Tim Starling
02547dac72 Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date. 2006-06-07 06:40:24 +00:00
Domas Mituzas
e2ae8925ff AutoLoad Math.php 2006-06-06 10:00:53 +00:00
Brion Vibber
0a26267688 Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :) 2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104 Use AutoLoader to load classes:
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Niklas Laxström
bd24bf4fb4 * Reverting BiDi changes because there were some problems left 2006-05-31 20:39:14 +00:00
Niklas Laxström
c59b619ff8 * (bug 6100) BiDi: different directionality for user interface and wiki content (core parts of the patch) 2006-05-31 15:19:40 +00:00
Brion Vibber
ce8edcc565 Fixes to input validation and output escaping for user preferences.
Inserting a newline into some improperly filtered option strings could be used to overwrite other pref values, bypassing their input validation. Any newlines now get filtered out at User::setOption as a final line of defence.
There were a few HTML injection bugs, but none appear to be exploitable, as prefs can only be set if you already control the account.
Bug found by gmaxwell.
2006-05-15 09:45:14 +00:00
Antoine Musso
74cb4a7d21 fname in debug statement 2006-05-12 22:45:52 +00:00
Antoine Musso
ba44ee48f9 function name in debug output for OutputPage::checkLastModified 2006-05-12 22:38:58 +00:00
Antoine Musso
7ebdb6de89 Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad) 2006-05-11 22:40:38 +00:00
Antoine Musso
c3c2084ee2 Some more PHP5 stuff 2006-05-11 20:24:28 +00:00
Antoine Musso
acb150a105 a round of static statements 2006-05-11 19:39:50 +00:00
Antoine Musso
bc14eb8045 Replacing var keyword with private / public as we now require PHP5. 2006-05-11 19:10:41 +00:00
Rob Church
55532d5a3d (bug 5789) Treat "loginreqpagetext" as wikitext 2006-05-02 15:37:06 +00:00
Rob Church
cc001cf787 (bug 4876) Add __NEWSECTIONLINK__ magic word to force the "new section" link/tab to show up on specific pages on demand 2006-05-01 20:35:08 +00:00
Rob Church
8eeef128b4 (bug 5516) Show appropriate "return to" link on blocked page 2006-04-29 23:30:46 +00:00
Niklas Laxström
e30e9bdd12 * Parser can now know that it is parsing an interface message
* (bug 4737) MediaWiki:Viewcount supports {{PLURAL}} now
2006-04-29 13:15:19 +00:00
Antoine Musso
caa4b45577 Fix #5315: "Expires: -1" HTTP header not strictly RFC valid 2006-04-27 21:46:03 +00:00
Rob Church
493ba1821e * Indicate when a protected page is an interface message ("protectedinterface")
* (bug 4259) Indicate when a protected page being edited is an interface message ("editinginterface")
2006-04-25 01:44:04 +00:00
Rob Church
94f2a77931 (bug 5611) Add a name attribute to the text box containing source text in read-only pages 2006-04-25 01:30:50 +00:00
Magnus Manske
04f74e3a46 Changed DISPLAYTITLE magic variable to use ParserOutput object. Now shows alternate title correctly except in initial edit page. 2006-04-18 08:28:01 +00:00
Magnus Manske
e2106c4036 New DISPLAYTITLE magic template; decativated by default so not to scare Brion 2006-04-11 10:16:27 +00:00
Rob Church
ccbcfcb17c (bug 2139) Show page title in subtitle when viewing "read only" page 2006-04-04 15:51:35 +00:00
Brion Vibber
c430848043 Live hack: Skip some work on empty category/link sets 2006-04-02 03:59:07 +00:00
Tim Starling
0ea2ad838b don't double-profile redirects 2006-03-28 05:15:10 +00:00
Jens Frank
86c655d7ab Ajax based suggest feature for the search box 2006-03-26 19:03:14 +00:00
Tim Starling
ff375dd5f7 Save the last modified timestamp to the parser cache, to avoid the need for a revision row load on hits. 2006-03-16 02:57:44 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +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
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
Rob Church
a4afe3a91a (bug 5013) Check for existence on "return to" links 2006-02-16 22:29:53 +00:00
Domas Mituzas
2d23e2a977 Tidy up only article views, previews, image pages and diffs. 2006-01-23 18:37:46 +00:00
Brion Vibber
a0a46eb7a7 * Spit the generated LocalSettings code out during the installer as an aid
to debugging issues. (Keep this?)
* Use __FILE__ to form path in new LocalSettings.php, so it stays accurate
  when the directory is relocated for typical usage.
* Auto-update $wgCacheEpoch when LocalSettings.php changes on new installs.
  For typical usage this will be a light burden and should reduce confusion
  when the configuration is edited.
* Fix $wgCacheEpoch's effect on client-side caching.
2006-01-16 10:16:06 +00:00
Brion Vibber
261a683265 Restoring ThomasV's patch for a hook & use of the existing $cache parameter on addPrimaryWikiText.
Further testing indicates the problem was probably an incomplete sync or bad caching of
OutputPage.php on some servers, so the broken version of the function was called
on old page views, incorrectly storing old text items into the parser cache.
2006-01-14 23:56:01 +00:00
Brion Vibber
181f8ed6c2 Reverting this patch:
* (bug 4104) 'OutputPageBeforeHTML' hook to postprocess article HTML on
  page view (comes after parser cache, if used). Patch by ThomasV.
Something still bugged in this; was saving bogus history entries to parser cache.
2006-01-14 15:07:08 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Brion Vibber
03b9a2303d * (bug 4104) 'OutputPageBeforeHTML' hook to postprocess article HTML on
page view (comes after parser cache, if used). Patch by ThomasV.

http://bugzilla.wikimedia.org/attachment.cgi?id=1290&action=view
http://bugzilla.wikimedia.org/attachment.cgi?id=1296&action=view
http://bugzilla.wikimedia.org/attachment.cgi?id=1297&action=view
2006-01-13 17:00:05 +00:00