Commit graph

35 commits

Author SHA1 Message Date
Domas Mituzas
95281cb81e remove bad functions:
wfLimitResult() - replaced by Database::limitResult()
QueryPage::getOrderLimit() - replaced by getOrder() + Database::limitResult()
2004-08-20 10:32:12 +00:00
Antoine Musso
a2be70707c New getPageHeader() method. Allow to add some text before outputting the results. 2004-08-15 19:22:40 +00:00
Antoine Musso
a6b0c35d13 trivial double to single quotes translation 2004-08-15 19:12:17 +00:00
Brion Vibber
e04a675ab3 Fix notice; use isset() to test if things are set 2004-08-15 09:54:28 +00:00
Brion Vibber
2e4b591ef6 Detail comment on the 'value' column 2004-08-11 00:10:48 +00:00
Arne Heizmann
aeeec5397b In QueryPage: fixing a misleading comment. value needn't be numeric.
In SpecialUncategorizedpages.php: Fixing embarrassing SQL stupidity
   on my part. The article that contains the category link is cl_from,
   not cl_to. Duh.
2004-08-11 00:07:12 +00:00
Arne Heizmann
9def903d38 (hopefully) fix a warning that came up on various QueryPages. 2004-08-10 23:06:38 +00:00
Domas Mituzas
def7a1e9b2 split getOrderLimit() into getOrder() and Database::limitResult() 2004-08-10 13:55:29 +00:00
Arne Heizmann
075396a961 New feature: Recent Changes Patrol. All edits and new pages are now highlighted on
Special:Recentchanges and Special:Newpages until someone "marks" them as
"patrolled" using a special link. For new pages, this link appears at the bottom
of the article if the link in Recent Changes or New Pages is followed. For all
other edits, this link appears only in the diff and only if the diff link is
followed from Recent Changes. (Might need to add this functionality to Watchlist
too; haven't done that yet.)
2004-08-09 05:38:11 +00:00
Brion Vibber
b48611025e Fix fatal error from typo 2004-07-31 22:10:29 +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
Gabriel Wicke
048d9c3a13 bug fix: missing colon caused special pages to fail 2004-07-14 18:37:11 +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
Domas Mituzas
176d1c1202 use wfLimitResult 2004-06-11 16:37:15 +00:00
Tim Starling
f76a3fc34b Fixing special pages, esp. dropdown list in the nostalgia skin 2004-05-20 14:13:03 +00:00
Brion Vibber
ee940c906d Replace ugly abuse of log pages to store cached results of query pages
with a table that stores up to 1000 rows for each 'expensive' special
page. This can be paged through, reducing the annoyingness of 50 result
limits on the old system.

Rebuilding the cache can be forced by adding "recache=1" URL parameter,
but this will need to be refined with some sort of controls to prevent
abuse.

Added the user realname update to the installer's updater list, also.
2004-05-09 01:30:34 +00:00
Tim Starling
8f22cb45b1 include_once -> require_once 2004-05-07 13:43:10 +00:00
Brion Vibber
5be318f7e9 Fix use of the <comments> field in RSS feed. It's not a textual comment, but rather a URL to a comments page; using the talk page in this case. If the page in question already is a talk page, it'll be the same URL as the page itself. 2004-04-29 01:14:32 +00:00
Antoine Musso
72bdb334e0 +add the "comments" field to rss feeds
+Atom support !
2004-04-28 04:37:31 +00:00
Antoine Musso
7f07ad70b7 unlike the (# next) message in most cases. 2004-04-27 04:25:06 +00:00
Antoine Musso
ae73b80088 Fix sourceforge bug 919061
Show number of results instead of limit
2004-04-09 14:53:41 +00:00
Brion Vibber
509775a7d0 XHTML clean-up. Started reformatting Preferences. Fixed some hard-coding
of 'Vikipedio' in eo.
2004-04-09 08:27:00 +00:00
Brion Vibber
8658650490 XHML fixes 2004-04-09 01:00:29 +00:00
Brion Vibber
64bff5a33d Send cache-control headers with feeds, this makes 304 responses possible 2004-03-20 02:35:08 +00:00
Brion Vibber
9729a6d8de Some more RSS syndication work. <author> tags now included; Special:Newpages
includes page text (incomplete); preliminary feed support for Recentchanges;
added RSS feed link next to printable link (incomplete).
2004-03-19 05:31:18 +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
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
7c2b79afce Put site name first in feed title 2004-03-06 23:01:53 +00:00
Tim Starling
f6c1e98001 * using new Title::getURL() 2004-03-06 01:55:08 +00:00
Brion Vibber
17d9f911d1 Tweaking RSS; add dates, etc. 2004-03-05 11:21:43 +00:00
Brion Vibber
361c837063 New RSS feed should be easier to integrate with any QueryPage. Sample for Newpages. 2004-03-05 10:16:46 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
b0f510df56 Ability to declare all query pages "expensive" 2004-01-25 02:27:49 +00:00
Jens Frank
58c8694cae Feature-Request #816659,#668443: No (next 50) link if there is no next page
Implemented for:
   PageHistory,
   QueryPage and all derived from it,
   SpecialContributions
2004-01-20 19:02:12 +00:00
Evan Prodromou
f5d4ebe686 I was adding a special page (dead-end pages), and I realized that almost all
the special query pages were pretty much identical. I copy-and-pasted one to
make the one I was working on, and I realized that that was Wrong.

So, I took the common elements and made them into a class, QueryPage.php.
Then, I derived each of the existing special pages from QueryPage, and
overrode places where they differed. This is a Recipe pattern, btw, for
those of you following along at home.

Anyways, the upshot is that the query pages are a lot shorter, with just the
essentials that make them different from other query pages, and there's one
place to make big UI changes for all queries.
2003-12-01 16:04:35 +00:00