Commit graph

49 commits

Author SHA1 Message Date
Brion Vibber
c89816e6e1 make my paranoia feel better by escaping values :) 2008-04-24 22:30:21 +00:00
Daniel Cannon
817841a0c2 Special:Shortpages should return pages from all content namespaces, not just NS_MAIN. 2008-04-24 18:50:40 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Niklas Laxström
479008a3f7 * Some cleanups 2008-03-15 10:46:28 +00:00
Brion Vibber
0661128656 Dump obsolete pass-by-reference on QueryPage::preprocessResults() 2008-02-12 02:43:25 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +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
Niklas Laxström
0137e65890 * Fix some plurals 2006-12-23 18:30:36 +00:00
Antoine Musso
9148811f64 Strict standards. 2006-12-16 21:53:34 +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
Brion Vibber
bf63ffaa2c Committed a bunch of live hacks from Wikimedia servers
A few left, but these don't look too evil
2006-10-02 17:04:13 +00:00
Rob Church
5ec2f4d02d * (bug 6489) Use appropriate link colour on Special:Shortpages 2006-06-29 13:28:19 +00:00
Domas Mituzas
6a65a49206 Autoload QueryPage 2006-06-06 12:35:47 +00:00
Niklas Laxström
bd24bf4fb4 * Reverting BiDi changes because there were some problems left 2006-05-31 20:39:14 +00:00
Niklas Laxström
558436ae2e * Correct direction for special pages 2006-05-31 19:08:17 +00:00
Niklas Laxström
e95ccc4451 * More BIDI-fixes to special pages 2006-05-08 16:41:05 +00:00
Niklas Laxström
8b403ede36 * (bug 5805) message nbytes can now use {{plural:}}
* Cleaned up Special:Imagelist a bit
2006-05-05 12:21:12 +00:00
Brion Vibber
3c9cf267a1 * (bug 385) Installer support for PostgreSQL, fixes for PG compatibility
Applied from: http://bugzilla.wikimedia.org/attachment.cgi?id=1517&action=view
I haven't tested it with PG personally yet, but it doesn't appear to interfere with other functionality.
2006-04-12 08:15:28 +00:00
Brion Vibber
48c994520f HTML protection on message use 2006-01-15 20:34:25 +00:00
Antoine Musso
67d8411c6e Add a link to history. Usefull for vandalism tracking & speedy deletion 2006-01-15 14:06:29 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Domas Mituzas
0628fb0b85 marking as expensive, needs other index in order to provide efficient list of namespace0 nonredirect short pages 2005-11-12 23:00:02 +00:00
Ævar Arnfjörð Bjarmason
60a95add52 * Code style: normalized indenting 2005-10-21 02:06:22 +00:00
Domas Mituzas
cbe8317d07 force page_len index scan, where condition is not that important when a filesort would sort whole table... 2005-10-17 17:30:10 +00:00
Ævar Arnfjörð Bjarmason
2abd5e6665 * using htmlspecialchars() for safe XHTML output 2005-09-13 17:02:43 +00:00
Brion Vibber
9e6e293334 Add page_len field with byte length of current revision text, since
revision text is now stored separately and may be compressed.
This field is indexed which speeds up Special:Shortpages & Longpages.

Removed no longer used wfArticleIsStub().
2005-03-12 11:51:02 +00:00
Antoine Musso
991f798587 * Remove some hardcoded 0 instead of NS_MAIN
* Note in define.php that people should NOT change the integer values for NS_* constants
2005-01-11 18:18:16 +00:00
Brion Vibber
64ac6b8e77 Merge SCHEMA_WORK into HEAD. Lots of changes, some things are probably broken:
* Page moves/overwrites are a little iffy
* Compression might not be working right
* Profit!
2004-12-19 08:00:50 +00:00
Antoine Musso
45060393ea Fix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=705
Stop showing rss / atom feeds links for various special pages.
2004-11-13 20:40:28 +00:00
Zheng Zhu
d14181afe1 Add variant conversion to the output of these special pages 2004-10-21 03:36:19 +00:00
Brion Vibber
c7eebf66b1 ShortPages and LongPages are almsot identical; remove some duplication. 2004-10-03 10:42:02 +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
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
Antoine Musso
2af8995c59 * comment at top
* function styling
2004-06-12 19:47:53 +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
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
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Mr. E23
2794096b6c Minor speed improvement on list of long/short pages 2004-01-27 15:14:57 +00:00
Tim Starling
b0f510df56 Ability to declare all query pages "expensive" 2004-01-25 02:27:49 +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
Brion Vibber
077ccb298c Use wfMsg()'s parameters 2003-11-15 13:41:26 +00:00
Tim Starling
9b28aa9905 changing wfQuery to allow replication 2003-09-20 02:21:40 +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
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