aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Categoryfinder.php
Commit message (Collapse)AuthorAgeFilesLines
* Trim trailing whitespaceSam Reed2011-09-041-0/+4
| | | | | | | | | Add/tweak/update documentation Simplify some boolean returns Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/96260
* Add/remove/tweak method documentationSam Reed2011-05-191-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/88397
* Use consistent notation for "@todo FIXME". Should update ↵Siebrand Mazeland2011-05-171-0/+1
| | | | | | | http://svn.wikimedia.org/doc/todo.html nicely. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/88355
* Assignment in loop conditions suckSam Reed2010-10-131-2/+2
| | | | | | | | | while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in includes Add some braces Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/74745
* coding style tweaksJack Phoenix2010-03-231-21/+25
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/64077
* Random indentation and code formatting updates. No functional changes.Siebrand Mazeland2010-02-141-15/+22
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62481
* Fix a bunch of really weird spacing, other style fixesChad Horohoe2010-02-021-61/+56
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/61854
* Revert r46447 in Collection -- fixed bug in Categoryfinder class it was ↵Brion Vibber2009-01-291-3/+5
| | | | | | | | | | | | trying to work around. Categoryfinder::seed() was passing category names through Title::newFromText($ct,NS_CATEGORY), which meant that if the name started with what looks like a namespace, that would override the NS_CATEGORY default. Thus you got 'Wikipedia:Books' -> text portion 'Books' when you wanted 'Category:Wikipedia:Books' -> text portion 'Wikipedia:Books'. Using Title::makeTitleSafe(NS_CATEGORY,$ct) instead forces it to always use the category namespace. Additionally, I've added a check for invalid input -- previously a bad input leading to an invalid title would just kill it dead with a fatal error. Invalid input in the category list is now skipped. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/46513
* * Recursion loop check added to Categoryfinder classBrion Vibber2008-07-281-2/+8
| | | | | | | Infinite loops were causing segfaults in combination with Collection extension Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/38153
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-2/+0
| | | | | | | | * remove empty lines at end of file * remove "?>" where still present Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33276
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | 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.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* Some small doc tweaks to reduce Doxygen warnings, namely:Nick Jenkins2007-04-181-11/+11
| | | | | | | | | | | | | | | | | | * @link. You might think @link would surely mean "here comes a web URL" ... but @link is a valid command in Doxygen, which means an entirely different kind of link (an internal link to somewhere, so that you can separate documentation and implementation). The result is a mess, and the best solution I can see is to use "@see" instead of "@link". * Warning: argument `nourl' of command @param is not found in the argument list of Linker::makeMediaLinkObj($title,$text='') * Moving few class descriptions to right above classes, and/or formatting into Javadoc style. * "@addtogroup Special Pages" --> "@addtogroup SpecialPage" so that all special pages have the same @addtogroup tag. * @fixme --> @todo (must have missed these before) * "@param $specialPage @see" remove the "@" in the "@see" to stop warning. * @throws wants type, then a brief description, to stop warning. This last one is for PHPdocumentor only, but it fixes something for PHPDocumentor, and should be neutral for Doxygen: * WARNING in includes/api/ApiFormatYaml_spyc.php on line 860: docblock template never terminated with /**#@-*/ Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21343
* clean up white space, comments end at 80Antoine Musso2007-04-121-13/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21203
* Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor) Nick Jenkins2007-04-041-21/+21
| | | | | | | | | | | | pick up the appropriate tags, and documentation blobs for classes. This is the same as per r20769, but with the grouping changes (e.g. removing "@{{") omitted. Please be advised that more related documentation tweaks may follow later - e.g. Doxygen generates a log file of warnings that is 574 Kb in size, when run over the just the trunk/phase3 code ... eek! Thankfully, much of that is just whining about functions without documentation ;-) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20995
* Revert r20769: we don't use PHPDocumentor anymore, we use doxygen.Brion Vibber2007-03-281-21/+21
| | | | | | | If making mass changes to tweak to its preferences, probably better to do it for the tool we actually generate docs with. :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20771
* PHPDocumentor [http://en.wikipedia.org/wiki/PhpDocumentor] documentation ↵Nick Jenkins2007-03-281-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | tweaking stuff. Minor doc tweaks to prevent some PHPDocumentor warnings or errors when run on the includes/ directory. PHPDocumentor uses a syntax very similar to javadoc - mostly we already use this, but there were a few scattered places that were adjusted to make them consistent with the rest of the code. In practical terms, these changes were made: * @url becomes @link * @fixme becomes @todo * HTML tags in descriptions must be closed / balanced. * @bug was removed (where the bug was long fixed), or changed into a @todo (in the few situations where the bug was still pending) * @obsolete becomes @deprecated * Things like "/**@{{" and "/**@}}*/" which cause "unknown tag" warnings were removed * @access must be a valid access level. * @desc tag not needed, removed. * Doesn't seem to like @licence, will accept @license however. * Use full comment block notation in a few places (i.e. open block with "/**", start each line with " *", and end block with " */") Then additional to this, to get some class docs associated with their respective classes: * Moved some docs to right above those classes (deleting blank lines, or moving descriptions from the file headers) * Marked some classes without docs as "@todo document" * (done up to "class MIMEsearchPage" on the "classtrees_MediaWiki.html" page for the includes/ directory) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20769
* The war on redundant ampersand usage!Nick Jenkins2007-01-221-1/+1
| | | | | | | | | | | | * 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19598
* Rename constructors to __constructorAntoine Musso2007-01-201-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19492
* Switching from phpdoc to doxygen (use less than 32MB of memory).Antoine Musso2006-04-191-2/+4
| | | | | | | | Run maintenance/mwdocgen.php to generate doc in ./docs/html/ . Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13740
* Be less anal about entry points, class definitions do no harm to anyone, ↵Domas Mituzas2006-01-141-3/+1
| | | | | | | defined() is expensive Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12671
* * Added wfDie() wrapper, and some manual die(-1), to force the return codeBrion Vibber2006-01-141-1/+1
| | | | | | | to the shell to return nonzero when we crap out with an error. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12660
* BIG ONE - Possible DB server killer! (deactivated by default:-)Magnus Manske2006-01-091-0/+191
Recent changes can now be filtered by categories (AND and OR) To enable, set $wgAllowCategorizedRecentChanges = true ; in LocalSettings Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12546