Commit graph

16 commits

Author SHA1 Message Date
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