Commit graph

278 commits

Author SHA1 Message Date
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
Niklas Laxström
72bfc638b4 Missing variable declarations 2006-01-10 18:44:39 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Ævar Arnfjörð Bjarmason
d8e90514ab * Documentation: @private => @access private 2006-01-07 12:48:44 +00:00
Ævar Arnfjörð Bjarmason
380d540f46 Code review!
* Don't start a new scope with if defined 'MEDIAWIKI...
2006-01-07 12:25:36 +00:00
Rob Church
c1b1b2de50 * Move the "user is blocked" page to OutputPage
* Disallow users to use rollback when blocked
2006-01-06 23:09:37 +00:00
Tim Starling
3fc92e0c28 removed $wgParserCache, converted to a singleton 2006-01-05 04:26:52 +00:00
Tim Starling
f2a59db33f Removed $wgLinkCache, converted to a singleton. Removed obsolete cruft from LinkCache.php. 2006-01-05 02:05:53 +00:00
Tim Starling
426c641441 fix for broken categories on preview 2006-01-01 20:08:08 +00:00
Tim Starling
81217f55a0 * Added templatelinks table. The table currently represents a literal list of templates included from each article. That is, the table contains pages which were actually loaded during parsing, not the markup which went into resolving their names.
* Ended the role of $wgLinkCache in link updates. Instead, links (and related entities) are registered in the ParserOutput object during a parse. The LinksUpdate constructor now takes a ParserOutput object as a parameter. $wgLinkCache is still used, but only as a cache of article IDs.
* Because the link list is now saved and restored in the parser cache, meta tag keywords now work on parser cache hits. Some refactoring took place in this area.
* Rendering of the HTML for category links has moved from Parser to OutputPage.
* Did some general pottering around in Article.php, such as allowing an Article object to be created with a specified revision ID, thereby optionally removing the dependence on $wgRequest. Not used at the current time.
* A few documentation tweaks.
2005-12-30 09:33:11 +00:00
Magnus Manske
c7e8a273da now displays system messages in their edit box even if they are not set in the database yet 2005-12-28 14:47:30 +00:00
Brion Vibber
0f3e2091d1 * Remove unused OutputPage::addCookie()
* Set cookies to secure mode based on use of HTTPS or $wgCookieSecure
Note; this currently doesn't override the session cookie params. Set separately
2005-12-26 10:29:22 +00:00
Ævar Arnfjörð Bjarmason
42d8f43913 * Added a new accessor/mutator for OutputPage::mParserOptions and deprecated the old one
* KEYWORDS => keywords, as per W3C reccomendations
2005-12-21 02:38:54 +00:00
Brion Vibber
6739f7f88f * (bug 4212) Skip redundant meta-robots tag for default settings 2005-12-08 02:38:46 +00:00
Brion Vibber
f9bdb2bca4 * (bug 4214) Skip redundant action text inserts into the HTML <title> 2005-12-08 02:07:45 +00:00
Antoine Musso
d0f88435a3 Remove Out::transformBuffer method that does nothing 2005-12-04 21:08:39 +00:00
Antoine Musso
2ca68a256d Clean up unused globals! 2005-12-04 18:27:59 +00:00
Brion Vibber
cb32fc167e fix typo in var name 2005-12-01 08:24:49 +00:00
Brion Vibber
bcf653c8f9 * (bug 3979) Save correct {{REVISIONID}} into parser cache on edit
* Substitute {{REVISIONID}} correctly in diff display
Removed hook for revision-id override, avar will change his extension to use the new system
2005-11-27 06:04:41 +00:00
Tim Starling
4e7cbbb184 Save the results of the link cache update parse into the parser cache. This improves the speed of the inevitable subsequent page view. 2005-11-15 12:09:31 +00:00
Tom Gilder
2afff59a8b (bug 2585) Return proper 404 code when pages don't exist 2005-10-12 03:12:40 +00:00
Tom Gilder
fb08fb3176 Added support for separate noarticletextanon 2005-10-06 14:20:45 +00:00
Antoine Musso
1833e43b5a Move reporttime method from OutputPage object to a global function, let us use it for diewithtraceback 2005-09-24 13:37:26 +00:00
Niklas Laxström
c72a6b7779 * (bug 3170) Page Title failed to obey MediaWiki:Pagetitle 2005-08-17 12:00:07 +00:00
Antoine Musso
9e65c90385 Fix #2393: incorrect MIME type for atom feeds
ref: http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.7
2005-08-15 21:39:30 +00:00
River Tarnell
ec030e9957 when whitelistread prevents a page being viewed, add returnto= to the URL
parameters for Special:Userlogin.
2005-08-03 22:49:43 +00:00
Tim Starling
7c900a732a profiling improvements and bug fixes 2005-07-25 07:00:20 +00:00
River Tarnell
a14ffdcfb9 allow 'uselang' and 'useskin' to be specified in the URL parameters, with
some obvious effect.
2005-07-24 06:55:45 +00:00
River Tarnell
bc36d810e7 (bug 796) trackback support 2005-07-23 05:47:25 +00:00
Alexander Sigachov
11acc476f4 Add categories to meta KEYWORDS 2005-07-12 21:23:28 +00:00
Antoine Musso
157861bc31 fix some issues with phpdoc 2005-07-05 21:22:25 +00:00
Brion Vibber
8f1213a7c5 * Workaround for mysterious problem with bogus epoch If-Last-Modified reqs 2005-07-04 22:24:06 +00:00
Brion Vibber
d973208bdb * Workaround for mysterious problem with bogus epoch If-Last-Modified reqs 2005-07-04 22:06:39 +00:00
River Tarnell
8e2724711f fixes for action=render on image pages 2005-07-03 04:56:53 +00:00
River Tarnell
e4a87e105a implement "action=render" 2005-07-03 04:00:33 +00:00
River Tarnell
8ff36ebd62 remove wfdebug in pagehistory
set ETag header on article views
2005-07-01 00:03:31 +00:00
Ævar Arnfjörð Bjarmason
bd91985ec9 * Added a versionRequired() function to OutputPage, useful for extension
writers that want to control what version of MediaWiki their extension
  can be used with
2005-06-26 06:49:56 +00:00