Commit graph

43 commits

Author SHA1 Message Date
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
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Rob Church
93371357d4 * (bug 4359) red [[user:#id]] links generated in [[special:Log]] 2005-12-30 23:16:42 +00:00
Ævar Arnfjörð Bjarmason
ac558e6933 * Added a TODO comment 2005-10-20 20:03:08 +00:00
Ævar Arnfjörð Bjarmason
b09caa9d1a * Removed function validActions(), no longer used by anything
* Added a hook to isLogType() to be used by Newuserlog and Renameuser
* FIXME comment
2005-09-30 15:03:48 +00:00
Ævar Arnfjörð Bjarmason
d0f2e190e3 * Documentation
* Whitespace
* Added the setting of $updateRecentChanges to the constructor
2005-09-09 19:26:56 +00:00
Niklas Laxström
9d64c3e2e7 Don't mess recent changes 2005-08-27 18:50:51 +00:00
Niklas Laxström
73a2aea77b +* Experimental feature to allow translation of block expiry times 2005-08-27 16:35:10 +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
Ævar Arnfjörð Bjarmason
fae689663f * (bug 2774) Add three new $wgHooks to LogPage which enable extensions to add
their own logtypes, see extensions/Renameuser/SpecialRenameuser.php for an
  example of this.
2005-07-22 18:55:58 +00:00
Ævar Arnfjörð Bjarmason
cf59db8b61 * Not showing " : " in recentchanges if the rcComment is empty
* Documentation
2005-07-07 14:10:00 +00:00
Ævar Arnfjörð Bjarmason
03220d42c9 * Documented the constructor
* Fixed a logic error in actionText(), extensions can now write to the log
  using an empty action string without warnings.
* Formatting
2005-07-07 13:44:33 +00:00
Brion Vibber
f61ae30bed whitespace 2005-06-19 20:25:09 +00:00
Tim Starling
f98c133919 Major changes to user groups:
* Added "static groups" feature to remove memcached/DB load time
* Added i18n support, allowing names and descriptions to be optionally drawn from wfMsg/wfMsgForContent
* Fixed Special:Groups, it is now half-decent. Too many changes to list here.
2005-05-01 18:24:20 +00:00
Tim Starling
c546f43c17 Changed LogPage::actionText() calling convention to allow for 1.4-style move page links. Utilised the new LinkBatch to speed up link lookups in Special:Log 2005-04-03 07:36:50 +00:00
Erik Moeller
fc8bdb46f4 1) omit "N Image:Bla.jpg" entry from Recent Changes for file uploads
2) wikify page titles in log entries which appear in RC
2005-03-24 13:13:08 +00:00
Antoine Musso
8f8bdca420 Stop showing moves directly in recentchanges, instead use the logging system (that add an entry in recentchanges). 2005-01-31 04:07:56 +00:00
Tim Starling
44eab3b9f0 elaborate fix for bug 1156: Block log: missing expiry time. Changed schema for logging table 2005-01-14 13:47:19 +00:00
Brion Vibber
378446bead Bug 1168: Missing text on the bureaucrat log
patch from Zigger
2004-12-23 21:10:24 +00:00
Brion Vibber
16f0aa1813 Merge unblock fix from REL1_4 2004-12-23 06:58:50 +00:00
Evan Prodromou
4b42f18b66 Removed CVS keywords from files, to make merging between branches
easier. Interpolated keywords cause lots of conflicts and headaches at
merge time for older (<1.12.x) CVS versions.
2004-11-29 18:25:30 +00:00
Antoine Musso
28ea816fba Implementing user levels management. This is only a very basic interface and several things need to be done! A tracking bug is at http://bugzilla.wikipedia.org/show_bug.cgi?id=767 2004-10-24 19:14:48 +00:00
Tim Starling
412eda0517 Correcting bugs due to double-prefixing table names. Removing obsolete Database member functions. Adding comments to Database.php 2004-10-24 07:10:33 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Brion Vibber
d50a47ba42 Old log page -> logging table importer.
Not yet fully functional.
2004-08-25 17:24:31 +00:00
Brion Vibber
b025ad54c6 Show pretty localized log names in Recentchanges instead of Special:Log/upload etc 2004-08-25 02:13:32 +00:00
Brion Vibber
41e752879c Special:Log and the logging table -- unified logging scariness!
Replaces the ugly, often breaking, manually archived log pages with
a nice clean table which can be sorted, trimmed, viewed in pieces, etc.
You can see all logged actions by some user, or affecting some page,
and can combine the views of all all logs in one.

There are probably still some broken things in here, but I want this
committed before the patch gets any bigger.

recentchanges table is altered to make rc_namespace signed so Special:
links can be listed in it.
2004-08-24 08:11:46 +00:00
Antoine Musso
3d60242fb5 massive double to single quotes conversion. I have not noticed any bug after a lot of testing 2004-08-22 17:24:50 +00:00
Domas Mituzas
a0f0cb6ee4 fixup timestamps 2004-08-20 13:43:45 +00:00
Brion Vibber
a8f30f1807 Always use the global default date setting for log entries.
Fix for [ 897902 ] Deletion log date stamp inconsistent
2004-08-08 06:58:17 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Brion Vibber
014093acc4 More globals and uninitialized variables fixes. Added WebRequest ($wgRequest)
object to encapsulate the handling of get/post variables:

The following grab something out of $_REQUEST. The first parameter is the
variable name and is required. The second is an optional default value:

  $wgRequest->getVal() - any type, returns NULL if no default given
  $wgRequest->getInt() - forced integer, 0 default
  $wgRequest->getText() - runs through $wgLang->recodeInput()
  $wgRequest->getBool() - return true/false
  $wgRequest->getCheck() - returns true if the var is set, even if to ""

$wgRequest strips slashes at initialization if necessary.

Also in this fine object:
  $wgRequest->wasPosted() - returns false if this wasn't a real form post,
    so we can protect against faked submissions in get urls.

There's still plenty of work to do, not everything uses the new functions
yet. To test the strict mode, do define('DEBUG_GLOBALS', 1);
2004-03-08 09:09:35 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
3c96949682 * Recent Changes improvements: object oriented back end, move page annotation and (untested) message queue feed.
* Misc. bugs fixed in DatabaseFunctions.php and Skin.php.
* install-utils, install and update utilise Database objects instead of handling their own connections
* schema change for RC improvement -- added rc_type, rc_moved_to_title and rc_moved_to_ns
2004-01-17 05:49:39 +00:00
Mr. E23
bdf73da2d2 The purpose of this modification is to ensure that every normal request
execution starts and ends in wiki.phtml, giving the code a somewhat
more predictable flow.

OutputPage.php:
* Added disable() method to Output class.
* Replaced exit() call in checkLastModified() with "return true" (thereby
  altering its contract quite severly).
* reportTime() now only returns elapsed time, code with side effects
  moved to logProfilingData() in GlobalFunctions.php.

GlobalFunctions.php:
* Added function logProfilingData() which does most of what
  OutputPage->reportTime() used to do.

Article.php:
* Replaced exit() in checkLastModified() with "return true" (thereby altering
  its contract quite severly).
* replaced implicit exit in calls to checkLastModified() and tryFileCache()
  with returns.

LogPage.php:
* replaced implicit exit() with return in call to checkLastModified()

SpecialRecentchanges.php:
* replaced implicit exit() with return in call to checkLastModified()

wiki.phtml:
* Single call to logProfilingData() at the end of the request.
2003-12-11 20:16:34 +00:00
Brion Vibber
64b688bd1d Evan's patch for bug 827757: Wikitext not escaped in log entry descriptions 2003-11-28 07:44:49 +00:00
Tim Starling
7057b4e609 wfQuery now takes three parameters -- one extra for DB replication purposes 2003-09-20 01:34:06 +00:00
Brion Vibber
bec44ccfba Update cache validation timestamp on logs when we update them 2003-08-30 06:11:18 +00:00
Brion Vibber
f92d41d6c3 Date/time fixes: try to ensure that timestamps are always kept in GMT, with conversion where necessary. 2003-06-30 01:33:16 +00:00
Brion Vibber
0dbedf1c7b Cache slow special pages allpages, lonelypages, longpages, shortpages, watnedpages 2003-05-16 11:19:06 +00:00
Lee Daniel Crocker
d82c14fb4f Initial revision 2003-04-14 23:10:40 +00:00