Commit graph

210 commits

Author SHA1 Message Date
Tim Starling
11f05acd53 Removed ListUsersPage from the lists in QueryPage.php and AutoLoader.php, it no longer exists. List formatting, comment fix. 2007-02-21 17:37:25 +00:00
Raimond Spekking
899967e703 * (bug 8919) Suppress paging links and related messages where there are no
rows to list for query pages
  Based on patch by Sui Min
2007-02-21 10:42:04 +00:00
Domas Mituzas
84d367f017 CategoriesPage no more 2007-02-10 12:41:55 +00:00
Nick Jenkins
f88c771756 The war on redundant ampersand usage!
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"

For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.

Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Antoine Musso
b144fcb85d Rename constructors to __constructor 2007-01-20 13:34:31 +00:00
Rob Church
2675a066d9 Advise users when updates for a query page have been disabled using $wgDisableQueryPageUpdate 2007-01-03 23:42:28 +00:00
Antoine Musso
4cc7d42d46 Save two function calls when pages are not cached. 2006-12-16 21:32:11 +00:00
Brion Vibber
0ce798bd16 Restore Special:Contributions to its state as of 17964
New version doesn't keep all features; keep it off trunk until complete
2006-12-05 01:11:12 +00:00
Brion Vibber
d47708b4cb * Enable QueryPage classes to override list formatting; return Contribs
to unordered list display to improve readability
2006-12-04 22:54:12 +00:00
Ilmari Karonen
0f50b6db3a New special page Special:NewbieContributions to replace Special:Contributions/newbies
Also remove some obsolete contributions-related UI messages.
2006-12-03 01:59:57 +00:00
Ilmari Karonen
2df501fa0d Didn't really mean to delete SpecialContributions.php back there, but now that
it's gone, I might just as well roll out my new, completely rewritten version.
2006-12-03 00:05:45 +00:00
Nick Jenkins
74ea267553 Prevent the following strict-standards warnings - i.e. when running with error_logging(E_ALL | E_STRICT); - which seems to disable the yucky "@" operator, as well as maxing out the pedantry of warnings. Nothing major found, just nice to be as explicit and as forward-compatible as possible.
* Strict Standards: Undefined index: switch in includes/Parser.php on line 3849
* Strict Standards: Undefined index: ref in includes/Parser.php on line 3818
* Strict Standards: Non-static method OutputPage::setEncodings() should not be called statically in index.php on line 11
* Strict Standards: Only variables should be assigned by reference in includes/Skin.php on line 888
* Strict Standards: Non-static method Title::newFromURL() should not be called statically in includes/SpecialContributions.php on line 178
* Strict Standards: Only variables should be assigned by reference in includes/GlobalFunctions.php on line 2054
* Strict Standards: Undefined index:  contributions-summary in languages/Language.php on line 764
* Strict Standards: Undefined index:  trackbackhtml in skins/MonoBook.php on line 86
* Strict Standards: Undefined index:  blockip in skins/MonoBook.php on line 204
* Strict Standards: Undefined index:  tagline in skins/MonoBook.php on line 261
* Strict Standards: Undefined index: uselang in includes/SkinTemplate.php on line 1159
* Strict Standards: Non-static method CoreParserFunctions::plural() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Undefined offset:  0 in includes/SkinTemplate.php on line 196
* Strict Standards: Undefined index:  USE INDEX in includes/Database.php on line 1015
* Strict Standards: Undefined index:  image_tests in includes/Parser.php on line 3488
* Strict Standards: Undefined offset:  0 in includes/Parser.php on line 3507
* Strict Standards: Non-static method ChangesList::newFromUser() should not be called statically in includes/SpecialWatchlist.php on line 361
* Strict Standards: Non-static method RecentChange::newFromCurRow() should not be called statically in includes/SpecialWatchlist.php on line 367
* Strict Standards: is_a(): Deprecated. Please use the instanceof operator in includes/Exception.php on line 168
* Strict Standards: Non-static method LogPage::logName() should not be called statically in includes/SpecialContributions.php on line 325
* Strict Standards: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in maintenance/commandLine.inc on line 191
* Strict Standards: Undefined index:  meatball in languages/Language.php on line 234
* Strict Standards: rmdir(/tmp/mwParser-2108164586-images/thumb): Directory not empty in maintenance/parserTests.inc on line 605
* Cleaning out some new temp files left over by parserTests (there were one or two straggler dirs/files that would persist after the test run ended, due to new tests being added over time)
* Strict Standards: Non-static method CoreParserFunctions::special() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Declaration of ListUsersPage::preprocessResults() should be compatible with that of QueryPage::preprocessResults() in includes/SpecialListusers.php on line 38
* Strict Standards: Only variables should be passed by reference in includes/SpecialBlockip.php on line 175
* Strict Standards: Skin::include_once(skins/Standard.deps.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in includes/Skin.php on line 121
* Strict Standards: Declaration of ApiMain::getResult() should be compatible with that of ApiBase::getResult() in includes/api/ApiMain.php on line 35
* Strict Standards: is_a(): Deprecated. Please use the instanceof operator in includes/WikiError.php on line 63
* Strict Standards: Non-static method WikiError::isError() should not be called statically in includes/SpecialImport.php on line 64
* Strict Standards: Non-static method ImportStreamSource::newFromInterwiki() should not be called statically in includes/SpecialImport.php on line 58<b
* Strict Standards: Only variables should be assigned by reference in includes/SpecialUndelete.php on line 501
* Strict Standards: Non-static method Image::newFromName() should not be called statically in thumb.php on line 56
* Strict Standards: Non-static method CoreParserFunctions::numberoffiles() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Non-static method CoreParserFunctions::statisticsFunction() should not be called statically in includes/CoreParserFunctions.php on line 139
* Strict Standards: Non-static method CoreParserFunctions::isRaw() should not be called statically in includes/CoreParserFunctions.php on line 128
* Strict Standards: Non-static method CoreParserFunctions::grammar() cannot be called statically in includes/Parser.php on line 2902
* Strict Standards: Undefined offset:  1 in includes/SpecialMIMEsearch.php on line 130
* Strict Standards: Undefined index:  recentchangeslinked in skins/MonoBook.php on line 184
* Strict Standards: Declaration of DumpNotalkFilter::pass() should be compatible with that of DumpFilter::pass() in includes/Export.php on line 612
* Strict Standards: Declaration of DumpNamespaceFilter::pass() should be compatible with that of DumpFilter::pass() in includes/Export.php on line 665
* Strict Standards: Non-static method ImportStreamSource::newFromUpload() should not be called statically in includes/SpecialImport.php on line 46
* Strict Standards: Undefined offset:  5 in includes/Sanitizer.php on line 396
* Strict Standards: Undefined index:  wikidbUserName in includes/SpecialUserlogin.php on line 562
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryBase.php on line 95
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryBase.php on line 116
* Strict Standards: Only variables should be assigned by reference in includes/api/ApiQueryWatchlist.php on line 128
* Strict Standards: Undefined property:  stdClass::$rc_id in includes/api/ApiQueryBase.php on line 131
* Strict Standards: Undefined property:  stdClass::$rc_last_oldid in includes/api/ApiQueryBase.php on line 164
* Strict Standards: Undefined property:  stdClass::$rc_moved_to_ns in includes/api/ApiQueryBase.php on line 285
* Strict Standards: Undefined property:  stdClass::$rc_patrolled in includes/api/ApiQueryBase.php on line 176
* Strict Standards: Undefined index:  comment in includes/api/ApiFeedWatchlist.php on line 85
* Strict Standards: Undefined offset:  0 in includes/Skin.php on line 302
* Strict Standards: Non-static method User::SetupSession() should not be called statically in includes/SpecialUserlogin.php on line 15

... There are certain to be other things too, so this is not intended to be comprehensive, rather the above just stops most of the notifications I observed.
2006-11-29 05:45:03 +00:00
Tim Starling
36ed0cd96c Reverting 17479/17480, breaks subclassing of Linker methods by skins. See my comment on bug 7405. 2006-11-08 07:12:03 +00:00
Nick Jenkins
fa239349f2 * (bug 7405) Make Linker methods static. Patch by Dan Li. 2006-11-08 05:21:15 +00:00
Tim Starling
a3b490d2c4 * Made special page names case-insensitive and localisable. Care has been taken to maintain backwards compatibility.
* Used special page subpages in a few more places, instead of query parameters
2006-10-30 06:25:31 +00:00
Tim Starling
3e7155b3db $wgLanguageCode no longer indicates the user language, for that use $wgLang->getCode(). This is necessary because determination of the language code is deferred. 2006-07-26 08:26:51 +00:00
Rob Church
15fda377a5 (bug 6344) Add Special:Uncategorizedimages page 2006-06-17 16:24:01 +00:00
Domas Mituzas
1f8fc0f6b1 AutoLoad Feed classes 2006-06-06 11:39:46 +00:00
Brion Vibber
0a26267688 Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :) 2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104 Use AutoLoader to load classes:
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Antoine Musso
7ebdb6de89 Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad) 2006-05-11 22:40:38 +00:00
Antoine Musso
c3c2084ee2 Some more PHP5 stuff 2006-05-11 20:24:28 +00:00
Antoine Musso
2a35002774 abstraction class 2006-05-11 18:22:19 +00:00
Rob Church
10335b4943 * (bug 5801) Correct handling of underscores in Special:Listusers
* Clean up Special:Listusers; add an "(all)" label to the group selection box
2006-05-03 01:23:10 +00:00
Rob Church
39ea0467d4 (bug 3825) Namespace filtering on Special:Newpages 2006-04-21 06:49:23 +00:00
Rob Church
c4a55e4dc2 (bug 5250) Introduce Special:Unusedtemplates 2006-04-18 03:49:13 +00:00
Rob Church
60b04004a1 Add meta tag and JavaScript variables to cached special pages which provides the timestamp of the last update, in YYYYMMDDHHMMSS format. 2006-04-17 22:57:39 +00:00
Rob Church
43363f3e70 Fix issues noted by Brion; proper handing of a missing record, and correct the schema alterations (type is only 32 chars, so don't waste 255 on it). Also, skip the whole read chunk if we're never going to output the data. 2006-04-17 04:48:12 +00:00
Rob Church
2cda98321d (bug 4327) Report age of cached data sets in query pages
[Schema change]
2006-04-17 04:30:39 +00:00
Rob Church
d71e043fc7 (bug 5475) New pages feeds ignore "limit" argument 2006-04-13 20:01:48 +00:00
Rob Church
a57c34a038 Add Special:Listredirects to list of query pages; wasn't being cached 2006-01-25 15:09:52 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
287022ef29 * Made a new permission for Special:Unwatchedpages, enabled by default for sysops 2005-12-21 13:31:47 +00:00
Antoine Musso
c2624eb751 unused dbw , remove call by reference but put a comment 2005-12-04 20:56:20 +00:00
Antoine Musso
2ca68a256d Clean up unused globals! 2005-12-04 18:27:59 +00:00
Ævar Arnfjörð Bjarmason
bb4e449437 * A querypage to show the most linked to categories 2005-10-23 18:26:37 +00:00
Ævar Arnfjörð Bjarmason
ee02ffd253 * A new special page to list wanted categories 2005-10-21 02:07:29 +00:00
Ævar Arnfjörð Bjarmason
de33ce9859 * Added the querypages to $wgQueryPages that were missing 2005-10-19 01:39:12 +00:00
Ævar Arnfjörð Bjarmason
b417c0f900 * Also suppress the perfached notice on listoutput 2005-10-16 02:29:30 +00:00
Ævar Arnfjörð Bjarmason
a37f439491 * Support plain list output
* Minor code cleanup
2005-10-16 02:03:21 +00:00
Ævar Arnfjörð Bjarmason
cb0c03c5af * Supporting a third paramater in $wgQueryPages, the number of pages that
should be cached in the querycache
* Adding a hook to allow an extension to add itself to $wgQueryPages
* Moved the recache() limit out of this file (into maintenance/updateSpecialPages.php)
2005-10-12 03:45:56 +00:00
Ævar Arnfjörð Bjarmason
b78006fe58 * Moved the logic of whether or not to use the querycache into a isCached() function 2005-09-16 15:05:07 +00:00
Ævar Arnfjörð Bjarmason
81999a4926 * Cleaned out some unused globals
* Using the ternary operator
* Safe XHTML output with htmlspecialchars()
2005-09-13 17:32:55 +00:00
Tim Starling
117ed3d83e Faster Special:Listusers, should be up to 10x faster for long lists 2005-09-11 12:33:59 +00:00
Brion Vibber
af2177edfd Code cleanup: normalize case for intval(), strval(), floatval() calls. 2005-08-16 23:36:16 +00:00
Ævar Arnfjörð Bjarmason
5620dbebef * New special page: SpecialMostlinked 2005-08-15 02:57:19 +00:00
Antoine Musso
b7c00b2be4 typo :/ 2005-08-09 10:32:59 +00:00
Antoine Musso
315d6d6188 limitResult() use 3 argument since ORACLE merge 2005-08-09 10:30:20 +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
Antoine Musso
34a05f2652 Popularpages is not a valid special page when counters are disable. That
blocked the updateSpecialPages.php maintenance script.
2005-07-15 23:56:58 +00:00
Brion Vibber
16a2275f54 * (bug 2625) Keep group & user settings when paging in Listusers 2005-06-30 07:37:04 +00:00
Brion Vibber
b5571abf26 * (bug 2493) code cleanup 2005-06-23 18:25:00 +00:00
Brion Vibber
173eb862d3 * (bug 2329) Fix title formatting in several special pages 2005-06-05 07:55:54 +00:00
Erik Moeller
25c82da917 make Special:Newpages includable
{{Special:Newpages}} => default number of pages, with no navigation
{{Special:Newpages/shownav}} => show the header and navigation links
{{Special:Newpages/10}} => set number of pages to 10
{{Special:Newpages/limit=5,offset=10,shownav}} => all possible params
2005-05-28 17:17:27 +00:00
Tim Starling
6c1ccfd02e Made updateSpecialPages.php more robust to database problems 2005-04-24 08:31:12 +00:00
Tim Starling
4b279acd46 New updateSpecialPages.php script, to update the QueryPage cache. Disabled recache parameter, using HTTP for long queries is a bad idea because of retries. Fixed broken QueryPage subclasses: Special:BrokenRedirects Special:Disambiguations and Special:DoubleRedirects. 2005-04-24 04:16:50 +00:00
Tim Starling
0af46ac5e1 oops 2005-04-23 12:43:45 +00:00
Tim Starling
073ac49c1b Implemented query group feature, needed for slow queries esp. in 1.4. Hopefully fixed lagged slave mode. Added a simple method to simulate lagged slaves. 2005-04-23 11:49:33 +00:00
Brion Vibber
31b6885995 Load text for Newpages RSS/Atom feed separately (needed for new storage mechanism)
Use full title in feeds if they include non-main-ns stuff
2005-03-18 06:49:14 +00:00
Brion Vibber
a4de8c5cff fix notice for unset variable when only one item displayed; not sure this code is very nice though. duplicate bits and scaryiness 2005-02-06 14:26:52 +00:00
Antoine Musso
cc9f2dcf72 Fix #770. Does mysql group_concat at application level. Hacked querypage to flush out last result (see tryLastResult() to enable the hack). 2005-02-01 02:02:14 +00:00
Antoine Musso
8cd79782b8 comment about last commit 2005-02-01 01:42:22 +00:00
Antoine Musso
03d94a6e4c Do not output lines for which nothing is formatted (formatResult returning false) 2005-02-01 01:41:30 +00:00
Tom Gilder
8928e2ca8b monoboob/main.css cleanup; don't use underscore for selector 2005-01-30 16:57:38 +00:00
Brion Vibber
75464a897e Fix undeclared variable usage introduced in last update 2005-01-22 02:37:18 +00:00
Tom Gilder
c0dd017fab Various XHTML fixes 2005-01-16 02:57:30 +00:00
Zheng Zhu
6026abb11f (bug 1076) navigation links in QueryPage should be translated by wgContLang 2004-12-11 19:23:03 +00:00
Antoine Musso
f174e30565 new method isSyndicated() . Could be used in a child class when we dont want syndication to be available (rss / atom) 2004-11-13 20:33:37 +00:00
Zheng Zhu
d14181afe1 Add variant conversion to the output of these special pages 2004-10-21 03:36:19 +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
Arne Heizmann
9194bdac2e change all occurrences of "fromwikipedia" to "tagline".
change all occurrences of "aboutwikipedia" to "aboutsite".
2004-09-03 21:29:06 +00:00
Arne Heizmann
73466f61ee remove trailing white space 2004-09-03 21:22:20 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +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
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