Commit graph

27 commits

Author SHA1 Message Date
Domas Mituzas
cede31f892 do not trust equality propagation, help optimizer a bit ;-) 2006-01-25 20:50:39 +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
31262fdf29 Don't try to inflate or unserialize an error flag 2006-01-19 03:59:20 +00:00
Tim Starling
679b0e69b8 Option to write text directly to external storage. 2006-01-09 03:16:56 +00:00
Domas Mituzas
41c1c69fdf character set conversion //IGNORE live patch 2005-12-26 13:05:20 +00:00
Brion Vibber
4b18b9b0bd Reverting hook in getRevisionText() which was added with no explanation
of what it's meant to do. Incorrect modification in this location would
cause data corruption, so is almost certainly wrong.
2005-09-30 22:05:58 +00:00
Ævar Arnfjörð Bjarmason
a4deeb4be7 * (bug 3577) Added a RevisionAfterGetRevisionText hook to getRevisionText() 2005-09-30 15:25:55 +00:00
Brion Vibber
af2177edfd Code cleanup: normalize case for intval(), strval(), floatval() calls. 2005-08-16 23:36:16 +00:00
Antoine Musso
189fd58ebb useless return 2005-08-15 20:27:03 +00:00
River Tarnell
b817c0c15f merge ORACLE_WORK. sorry, this may break some parts of MySQL, i did not test extensively. 2005-08-02 13:35:19 +00:00
Brion Vibber
b0c41ad13b * (bug 2885) Fix fatal errors and notices in PHP 5.1.0beta3
* (bug 2931) Fix additional notices on reference use in PHP 4.4.0
2005-07-22 11:29:15 +00:00
Brion Vibber
0226b12c83 * (bug 2572) Fix edit conflict handling 2005-06-28 23:19:56 +00:00
Brion Vibber
45e2cbf7f2 * Try reading revision _text_ from master if no result on slave
* Use content-language message cache for raw view of message pages
2005-06-27 03:48:05 +00:00
Brion Vibber
81f8c0e8ee Revision::newFromConds -- grab from master if no result on slave 2005-06-26 18:47:09 +00:00
Brion Vibber
528842e3a5 * (bug 2053) Move comment whitespace trimming from edit page to save;
leaves the whitespace from the section comment there on preview.
2005-06-01 08:18:34 +00:00
Tim Starling
305873a984 Added LIMIT 1 to revision query, for no particularly good reason. I was going to pass a condition which matched more than one row but changed my mind. 2005-05-28 07:01:14 +00:00
Brion Vibber
86ae933601 * (bug 1982) Fix loading of old text for section merging on edits. 2005-04-26 09:52:11 +00:00
Domas Mituzas
a49698b0f7 Add external repositories support for Revision, would
follow url if flag on text set, allows pluggable storage
modules and migration from databases to somewhere
else (huh, other databases ;-)
2005-04-18 17:21:27 +00:00
Brion Vibber
22c813ad97 * Add wfElement() for handy generation of properly-escaped XML/HTML elements with attributes.
* Begin infrastructure for deleted-revision tag; add rev_deleted field, some
display support for it in history and contribs. Not yet used for deletions.
Run update.php or source maintenance/archives/patch-rev_deleted.sql
2005-03-31 11:40:05 +00:00
Brion Vibber
0b86f637f2 Decouple revision.rev_id from text.old_id
* This will allow the backend text storage to use different id numbers
* Revisions noting metadata changes can be added to history without duplicating text
  (implemented for page move)

This changes the revision table schema and requires running update.php
or maintenance/archives/patch-rev_text_id.sql on existing test wikis.
PostgreSQL table defs are still not in sync, so not updated.
2005-03-28 10:47:12 +00:00
Brion Vibber
6f5560867c Start removing the Latin-1 hacks. We're going pure UTF-8 for 1.5... 2005-03-26 22:23:48 +00:00
Brion Vibber
7d8cfdca21 Lazy loading of revision text; needed for separate text storage backend.
Use Revision for Article::loadLastEdit
2005-03-18 04:32:55 +00:00
Brion Vibber
a5e10a4cbc Get rollback working on new schema 2005-03-12 12:50:43 +00:00
Brion Vibber
1c0dcc995d * Make undeletion (more or less) work with new schema
* Add ar_rev_id field to archive to preserve revision IDs across deletion+undeletion
2005-03-12 08:06:46 +00:00
Brion Vibber
74a0d76573 Add Revision::insertOn() method for saving new revisions into the database;
modify Article::updateArticle() to use it.
2005-03-11 06:00:05 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Brion Vibber
2b1127fe90 Start splitting back-end functions from the Article user-interface class.
Fix Special:Export for new schema.
2004-12-19 12:21:29 +00:00