aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Licenses.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
* Swap else if for elseifSam Reed2011-06-171-1/+1
| | | | | | | | | Trimming trailing whitespace also Doing in 3 commits, so hopefully reviewable in CR... Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90280
* Some for MaxSem tooSam Reed2011-05-281-7/+36
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89051
* Implement Message::isBlank and Message::isDisabled.Daniel Friesen2011-01-141-2/+2
| | | | | | | And while we're at it... update a random assortment of code using wfEmptyMsg to use the new wfMessage class and our exists/isBlank/isDisabled methods. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/80248
* random w/s cleanupMark A. Hershberger2010-12-011-5/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77536
* Get rid of PHP4-style constructorsChad Horohoe2010-08-301-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/71961
* Remove unused variableSam Reed2010-07-241-2/+0
| | | | | | | Remove 1 unused global Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/69847
* Fixed certain cases where license construction would be incorrect.Bryan Tong Minh2009-12-191-6/+3
| | | | | | | | | | | Code style fixes per CR r57868. Renamed functions: * watchCheck -> getWatchCheck * recoverableUploadError -> showRecoverableUploadError * uploadWarning -> showUploadWarning * uploadError -> showUploadError Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60232
* Followup to r57868: Fix two strict standards warningsBryan Tong Minh2009-10-181-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/57870
* Rewrote Special:Upload to allow easier extension. Mostly backwards ↵Bryan Tong Minh2009-10-181-38/+44
| | | | | | | | | | compatible towards the end user: tested with Commons' upload scripts. * Special:Upload now uses HTMLForm for form generation * Upload errors that can be solved by changing the filename now do not require reuploading. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/57868
* War on wfElement() and friends. Call the Xml members directly, rather than ↵Chad Horohoe2008-12-141-1/+1
| | | | | | | using old wrappers. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/44588
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-1/+1
| | | | | | | | | | | | | | | | | | Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-2/+1
| | | | | | | | * 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
* Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor) Nick Jenkins2007-04-041-1/+4
| | | | | | | | | | | | 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-4/+1
| | | | | | | 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-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-201-2/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* Rename constructors to __constructorAntoine Musso2007-01-201-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19492
* Code housekeeping stuff (and barring any stuff-ups on my behalf, there ↵Nick Jenkins2006-11-231-3/+5
| | | | | | | | | | | | | | | | | | should be no changes in behaviour whatsoever after this) - * removing some unused global declarations. * removing or commenting out or adding comments for unused local vars. * Adding one or two local var declarations. * Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness]. * remove one or two pass-by-reference function declarations where the value is not modified. * Adding some braces to if-else blocks. * In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether. * Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences. ... up to "LinksUpdate.php" in the includes/ directory. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17880
* Switching from phpdoc to doxygen (use less than 32MB of memory).Antoine Musso2006-04-191-4/+4
| | | | | | | | Run maintenance/mwdocgen.php to generate doc in ./docs/html/ . Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13740
* * s~\t+$~~Ævar Arnfjörð Bjarmason2006-01-071-14/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12476
* * (bug 3318) UI workarounds for disabled items in license selectorBrion Vibber2006-01-011-0/+1
| | | | | | | | | MSIE/Win: items now grayed out, JS will revert to 'non selected' if clicked Safari: JS will revert to 'non selected' if clicked (but not gray) MSIE/Mac: indented items now visible (JS hack) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12329
* * FormattingÆvar Arnfjörð Bjarmason2005-12-301-8/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12306
* * Reverting the last commit, if you just want to use a message from the userÆvar Arnfjörð Bjarmason2005-12-301-14/+1
| | | | | | | | | | | | language if it exists use wfMsg() instead of wfMsgForContent(), don't rewrite the entire message selection code when we have libraries to handle that, furthermore, this *should* use the content language by default, since it's only in rare cases, such as the commons, when you want the opposite, this should be overriden via a configuration ($wgForceUIMsgAsContentMsg) there instead of changing the main code. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12305
* Commons upload license list language fixMagnus Manske2005-12-301-1/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12304
* some useless calls / unitialized $matches arraysAntoine Musso2005-12-041-6/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/11970
* * @copyright tagÆvar Arnfjörð Bjarmason2005-11-131-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/11716
* * Revert last change to trimStars() which broke multi-level licenses like:Ævar Arnfjörð Bjarmason2005-09-281-8/+7
| | | | | | | | | | | * GNU ** GFDL *** GFDL|GNU Free Documentation License * Coding style * including {{}} in title="" e.g. title="{{GFDL}}" instead of title="GFDL" Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/11142
* * Improved trimStars()Ævar Arnfjörð Bjarmason2005-09-061-7/+6
| | | | | | | | * Coding style * Changed the name of the wfNoMsg() function to wfEmptyMsg() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10921
* * Fixed a bug, array_slice() called incorrectlyÆvar Arnfjörð Bjarmason2005-08-311-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10860
* eval() is evil! Improper escaping allowed, at a minimum, arbitrary globalBrion Vibber2005-08-301-11/+9
| | | | | | | | variable interpolations into Special:Upload output on malicious data in MediaWiki:Licenses. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10847
* Avar casts lvl 5 enhance to Licenses.php:Niklas Laxström2005-08-301-4/+5
| | | | | | | *Support for template paramaters Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10842
* * disabled="disabled" attribute for headersÆvar Arnfjörð Bjarmason2005-08-291-3/+7
| | | | | | | | | * title="" attribute for items * increased indent level * avoiding warning on "*\n" input Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10832
* * Support for a license selection box on Special:Upload, configurable from ↵Ævar Arnfjörð Bjarmason2005-08-291-0/+168
MediaWiki:Licenses Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10829