Commit graph

38 commits

Author SHA1 Message Date
Brion Vibber
9336586b1f Fix potential HTML breakage if removechecked message were to include an apostrophe 2004-10-14 04:40:58 +00:00
Zheng Zhu
c05629c010 Third batch of files modified to replace selected wgLang with wgContLang 2004-09-24 16:45:31 +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
Tim Starling
674b24b024 Fixed register_globals dependence, fixed HTML-insertion vulnerability by replacing the useless $limit with the actual number of rows returned 2004-08-13 11:57:20 +00:00
Domas Mituzas
341bfb5f44 use Database::timestamp() for cutoff 2004-08-10 13:22:15 +00:00
Arne Heizmann
c530c695a4 In Special:Watchlist?magic=yes, show links to non-existent pages in red 2004-08-09 10:03:39 +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
Tim Starling
0fb313eee4 Load balancing enabled in places where it's thought to be reasonably safe 2004-07-10 01:05:36 +00:00
Brion Vibber
a38b914fd8 Quote backslash slipup. Cosmetic. 2004-06-12 01:47:13 +00:00
Brion Vibber
0e306660f5 Detect bad titles on watchlist (shouldn't happen, but we want to live through it when it does) 2004-06-12 01:37:42 +00:00
Domas Mituzas
9cac06d2cc Remove 'USE INDEX' for non-mysql 2004-06-09 16:14:41 +00:00
Tim Starling
8f22cb45b1 include_once -> require_once 2004-05-07 13:43:10 +00:00
Gabriel Wicke
27853e94be tab indexes on diff links 2004-04-09 23:58:52 +00:00
Brion Vibber
0d8c8ffee1 XHTML fixes 2004-04-03 11:31:05 +00:00
Brion Vibber
b59ce22943 Replace the random boolean parameters on Title::getURL() with a set of
practical, clear methods:
  Title::getLocalURL() - "/wiki/index.php/Foobar" or "/wiki/index.php?title=Foobar&action=edit"
  Title::getFullUrl() - ditto with $wgServer on the front
  Title::getInternalUrl() - ditto with $wgInternalServer on the front (for some squid-related functions)
  Title::escapeLocalUrl() - local URL escaped for HTML output
  Title::escapeFullUrl() - full URL escaped for HTML output

All take an optional query parameter.

Title::getURL(), wfFullUrl() and wfFullUrlE() are now officially
deprecated and will result in instant death. wfLocalUrl() and wfLocalUrlE()
will be killed shortly; they are still used in the language files.
2004-03-07 07:26:56 +00:00
Brion Vibber
4dac4d85c6 Add digit transformation function Language::formatNum() for Arabic and other
languages which need to use localized (decimal) digits. Sample implementation
for Arabic.
2004-03-06 03:03:14 +00:00
Tim Starling
840dee3ad4 * Fixed magic quotes in $_REQUEST, in Setup.php
* Converted many instances of globals from the query to $_REQUEST
* Renamed near-useless Title::getURL() to Title::getPartialURL()
* Created new Title::getURL(), to replace wfLocalUrl, wfLocalUrlE, wfFullUrl and wfFullUrlE. Replaced most instances throughout the code
* In Parser.php, generalised stripping of <nowiki>, <pre> and <math> to allow more general use such as nesting
* Moved body of Article::preSaveTransform to Parser.php
* Put lots of comments in Title.php
2004-03-06 01:49:16 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
3a60685658 fixed subtle bug -- missing comma in SQL causing watchlist to display user page link for anon 2004-01-31 12:00:32 +00:00
Tim Starling
c6ac74db2b Watchlist caching, and some junk in DefaultSettings.php which will hopefully be used eventually 2004-01-25 02:33:34 +00:00
Tim Starling
a12ffe0cea Bug fixes: watchlist and recent changes linked were broken in the last commit 2004-01-17 09:49:43 +00:00
Brion Vibber
9185907df8 3-day default cutoff for shortlisters. FIXME: make this configurable? 2003-12-05 04:46:43 +00:00
Brion Vibber
ed736e69d0 Raise watchlist cutoff to 12 hours for 1000+ items 2003-12-03 15:18:38 +00:00
Brion Vibber
0a164de2ba Revert globals patch pending further work 2003-11-24 00:48:10 +00:00
Brion Vibber
13c17d0cc9 Commit JeLuF's register_globals fixes, first phase 2003-11-23 22:46:01 +00:00
Brion Vibber
e3846a5eea Merge several bits into wlshowlast 2003-11-19 00:56:59 +00:00
Brion Vibber
ca9ac09821 Use wfMsg()'s parameters 2003-11-15 13:26:37 +00:00
Tim Starling
46787701ce Nov. branch merge. Various features backported from stable, various bug fixes. 2003-11-09 11:45:12 +00:00
Tim Starling
436d389650 changing wfQuery to allow replication 2003-09-20 02:30:00 +00:00
T.D. Corell
1aedd5e7f6 Added translation phrases in wlCutoffLinks(). 2003-09-17 19:45:19 +00:00
Brion Vibber
5a495c5cde Use default time cutoff only for users with over 250 items watched; add explicit 'all' option as well 2003-08-08 05:13:09 +00:00
Brion Vibber
22cdb40a4e Updates to watchlist:
* Dump fixed number cutoff in favor of stricter time cutoff
* Try to guess which of two ways of doing the query will be
  more efficient
* Default time cutoff of 1 hour to minimize database thrashing
  for large watchlists...
* Add option to show the raw list and remove as many as you
  like in one go.
2003-08-07 11:54:16 +00:00
Brion Vibber
4b27ee1d82 Reactivate the cutoff date in the watchlist to speed up performance, hopefully; changing default to 7 days instead of the ridiculously short rc default 2003-08-02 19:52:05 +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
efca89ebbe Refactor some common code for offsets/limits; some preliminary stuff for upload license notes and mysql4 fulltext support (not ready yet) 2003-06-03 08:44:50 +00:00
Lee Daniel Crocker
d82c14fb4f Initial revision 2003-04-14 23:10:40 +00:00