Commit graph

468 commits

Author SHA1 Message Date
Jens Frank
86c655d7ab Ajax based suggest feature for the search box 2006-03-26 19:03:14 +00:00
Rob Church
94215f3416 (bug 4729) Add user preference that marks a user's edits as patrolled if user is able to 2006-03-18 22:47:40 +00:00
Brion Vibber
5478ace070 * (bug 5286) Fix regression in display of missing/bad revision IDs 2006-03-18 22:23:50 +00:00
Rob Church
fcd1cdeb93 * Remove deprecated $wgOnlySysopsCanPatrol references; use User::isAllowed( 'patrol' ) per bug 5282. Patch by Alan Harder. 2006-03-18 16:07:17 +00:00
Brion Vibber
103be1dda1 * Further work on rev_deleted; changed to a bitfield with several data-hiding
options. Not yet ready for production use; Special:Revisiondelete is
  incomplete, and the flags are not preserved across page deletion/undeletion.
  To try it; add the 'deleterevision' permission to a privileged group.
Also split some functions from GlobalFunctions to XmlFunctions.php, added
some convenience functions for building form controls, some more Linker
conveniences for formatting various types of standard link clusters.
2006-03-16 19:04:25 +00:00
Tim Starling
814f8a80c2 Don't require an existence check before calling loadPageData(). Added an accessor for page_latest, faster than getRevIdFetched() when it's needed for the permalink in the sidebar. Added shortcut calling convention for loadPageData(). 2006-03-16 02:32:30 +00:00
Domas Mituzas
0b25a247a1 replace TYPE= with ENGINE=, (supported since 4.0, TYPE deprecated since 4.1) 2006-03-12 14:35:03 +00:00
Lupin
c7408b9223 trailing whitespace removal 2006-03-11 17:13:49 +00:00
Brion Vibber
4ba00d60cb * (bug 5228) Workaround for broken LanguageConverter title overrides; avoid
unnecessary hidden UI work when watch/unwatch is performed on edit

This was changing the title to the 'addedwatch' or 'removedwatch' messages
when checking/unchecking the watch box when saving edits. This bogus title
got saved in the parser cache and served back up. Affected sr, didn't test zh.
2006-03-11 07:55:42 +00:00
Erik Moeller
75bc402284 &preload= is not just there because of the inputbox, and should not be moved
there.
2006-03-09 03:45:51 +00:00
Brion Vibber
e9aba9f2ea * (bug 5161) Don't try to load template list for nonexistent pages 2006-03-07 04:23:09 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +00:00
Brion Vibber
327f9654d0 * Purge thumbnails and metadata cache for action=purge on an image page 2006-03-01 01:27:36 +00:00
River Tarnell
e603747352 hooks for shared new talk notifications 2006-02-14 21:10:31 +00:00
Tim Starling
cf7ecb630d Forgot to add the new link tables to Article::doDeleteArticle() 2006-01-28 00:35:34 +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
Tim Starling
bd738ff55b give the correct error message when an article doesn't exist 2006-01-19 17:10:57 +00:00
Tim Starling
95ad85012e Removing leecruft. No, you sure as hell couldn't defer it. 2006-01-17 13:24:00 +00:00
Antoine Musso
88149ad3ae Fix #1122: "older revision" link displayed when viewing first revision of an article 2006-01-16 18:34:11 +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
Domas Mituzas
9e706b583b oh right right right!!! we have different Article subclasses!!!!!!
"Learn, learn and again..learn (c) Lenin"
2006-01-14 21:19:17 +00:00
Brion Vibber
53539af755 revert more of dammit's broken code
PLEASE TEST THIS FOR GOD'S SAKE
2006-01-14 20:27:47 +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
Domas Mituzas
a2f8d2ac74 Revert brion's revert. And learning a lesson about rebinding references. Ergh, I need to read php docs again :)
Removing several & in previous code would have fixed everything, bwah.
2006-01-14 09:58:29 +00:00
Brion Vibber
aa127daa2d Revert Domas's last checkin, it broke tabs on redirects. Please test before checkin! 2006-01-14 04:35:43 +00:00
Domas Mituzas
5c033c37c5 save ArticleID when it is around, saves one query :-) 2006-01-14 03:10:42 +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
Brion Vibber
04a7e6291e * (bug 1103) Fix up redirect handling for images, categories
Redirects are now followed from the top-level, outside of the Article
  content loading and viewing, for clarity and consistency.
2006-01-13 00:29:20 +00:00
Rob Church
6da9b403d8 Clear up some instances of old OutputPage::sysopRequired() function usage, replace with permissionRequired() 2006-01-11 03:37:51 +00:00
Brion Vibber
26cc539cac * Skip loading of RecentChange.php except where needed
Moved constants to Define.php; removed unneeded includes until use of RecentChange:: in Article, Log, CheckUser
2006-01-09 21:09:33 +00:00
Tim Starling
2eaa013bf7 Use wfGetDB(DB_SLAVE) when appropriate. Changed deletion summary autogeneration to make it cheaper and more slave-friendly. 2006-01-08 01:25:50 +00:00
Ævar Arnfjörð Bjarmason
368749d6c1 * Reverting ->getDB() => wfGetDB() in 1.434, not replication-safe 2006-01-08 00:44:07 +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
396ff20432 Code review!
* Marked &getDB() as deprecated and replaced some calls of it with calls to wfGetDB( DB_SLAVE ), no more calling the master for ro queries
* -@public, redundant, everything is by default
* @private => @access private
* Documented paramaters / return values
* ' . ' => nothing
* Removed dead code
* Rewrote the isCountable() function to return bool and fixed everything that calls it appropriately
2006-01-07 12:10:04 +00:00
Rob Church
9b8c2adb26 Prevent blocked users from using delete and undelete 2006-01-06 23:21:38 +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
Rob Church
fe66cac6cb * Bug 4456: Add hook for marking article patrolled 2006-01-03 15:45:36 +00:00
Niklas Laxström
f3854f220b * Removed broken wgAllowAnonymousMinor and added new group right minoredit 2006-01-02 17:11:04 +00:00
Tim Starling
400b9ac752 $wgOut->setRevisionId() was missing from one branch out of 4, causing an incorrect edit link when editing an old revision which is a redirect. Moved the call outside the if structure. 2006-01-01 22:07:14 +00:00
Tim Starling
5bd0ad36b7 Fixed categorised redirects 2006-01-01 21:44:43 +00:00
Ævar Arnfjörð Bjarmason
71f31cb977 * Added a hook (ArticlePurge) to Article::purge() to override whether or not
anonymous users have to go through a confirmation to purge their cache
2005-12-31 01:23:33 +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
Brion Vibber
3280e65cab * Removed Special:Validate, it's been superseded by the Review extension 2005-12-29 18:38:31 +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
Domas Mituzas
7df009ee34 Commit in live site statistic bits 2005-12-26 13:01:18 +00:00
Brion Vibber
a35fcb0bed * (bug 1735) Revamped protection interface
* (bug 675) Add page protection level for unregistered/new accounts
* User::isNewbie now uses the registration date and $wgAutoconfirmAge
* Log views show message when no matches
2005-12-22 05:41:06 +00:00
Magnus Manske
c5fb24d80d new hooks 2005-12-21 12:02:18 +00:00
Magnus Manske
660cf90ac9 new hook 2005-12-17 16:19:32 +00:00