Siebrand Mazeland
8e23949bee
Proper casing for getDBkey()
2009-05-24 08:29:10 +00:00
Aaron Schulz
3638367344
Whitespace :)
2009-02-25 00:48:07 +00:00
Ilmari Karonen
34fb6297cd
Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
...
This is a global search and replace of NS_IMAGE and NS_IMAGE_TALK with NS_FILE and NS_FILE_TALK respectively in all core files, excluding those already updated in step 1 (r44004).
2008-12-01 17:14:30 +00:00
Alexandre Emsenhuber
bd5c60e0a7
More doxygen fixes
2008-11-29 19:23:42 +00:00
Aaron Schulz
a6c6f7361d
* Remove incomplete isFileCacheable(), the parent one is fine
...
* Break long line
2008-11-19 00:02:23 +00:00
Robert Leverington
7ff30fcab3
* (bug 14923) Add method for getting a TitleArray for a particular category.
2008-07-28 19:02:40 +00:00
Nicolas Dumazet
579bfd985b
moving $cat = new self() before $cat->mTitle = $title ; PHP was unhappy.
2008-07-05 13:13:29 +00:00
Daniel Kinzler
c9f49d8476
allow Category objects for empty categories
2008-07-01 20:49:23 +00:00
Daniel Kinzler
417f9de04e
Make member counts from the new category table available for subcategories, beef up Category object a bit. This is mainly for use by the CategoryTree extension. NOTE: this changes the query used to fetch category listings!
2008-06-30 14:06:36 +00:00
Aryeh Gregor
5090acabd9
-136 lines of worthless code. Even if the idea was hypothetically good, which I'm not sure of, nobody is using CategoryList anywhere and I don't foresee any use for it. Also makes what remains considerably easier to read (no looping, etc.). This seems to work correctly, but I might have missed something somewhere, so be on the lookout.
2008-05-22 17:24:46 +00:00
Aryeh Gregor
38ce75b481
(bug 13693) Categories sometimes claim to have a negative number of members. Just recount them in this case; they *should* have relatively few members, so it should be fast. Note that even a worst-case scenario (recount of enwiki Living people) takes only a few seconds on the cluster, and it seems incredibly unlikely that that would occur.
2008-05-15 17:04:34 +00:00
Aryeh Gregor
95682c75b8
Wait, never mind, revert that. This is supposed to be DB keys . . .
2008-03-20 17:07:07 +00:00
Aryeh Gregor
6a300fabcf
I knew there was a better way. Use makeTitleSafe for this too.
2008-03-20 17:04:32 +00:00
Victor Vasiliev
dfae566d0b
Use Title::makeTitleSafe
2008-03-20 16:39:02 +00:00
Aryeh Gregor
8fc8c4530d
Fix an error for categories named literally "Project:" or some similarly weird thing. I thought that's not a legal title, but I'm told otherwise. Is there a better way to do this than manually prefixing "Category:"? The second parameter to newFromText is ignored if there are any prefixes, according to the docs.
2008-03-19 15:53:48 +00:00
Greg Sabino Mullane
d3a1c5c739
Use $db->conditional() instead of non-standard IF(). Fixes bug 13430.
2008-03-19 13:15:09 +00:00
Aryeh Gregor
80a5874828
This is a schema change. It's only a table creation, but the table must be created on Wikimedia servers before this revision goes live. The maintenance script populateCategory.php should be run when convenient. If it's not run, there's only one substantial case where display will be harmed: the page of a category with more than 200 net pages added since the patch goes live will give an erroneously low count. In other cases category pages will just be better-worded, and it will recognize the count in the table is bogus.
...
* Adds Category and CategoryList classes to represent categories themselves.
* Adds a category table, giving each category a name, ID, and counts of all members, subcats only, and files.
* Adds a maintenance script to populate the category table efficiently. This script is careful to wait for slaves and should be safe to run on a live database. The maintenance script's includes file is called by update.php.
* Until the category table is populated, the patch handles weird category table rows gracefully. It detects whether they're obviously impossible, and if so, it outputs appropriate messages.
2008-03-18 00:17:28 +00:00