Commit graph

77 commits

Author SHA1 Message Date
Platonides
5833c105d0 Move getValidNamespaces() to Namespace.php 2010-07-25 22:29:05 +00:00
Mark A. Hershberger
5162f49f97 Random whitespace cleanup 2010-02-05 04:25:30 +00:00
Mark A. Hershberger
faac46493e follow up 61775 -- REVERT REVERT 2010-02-01 04:57:42 +00:00
Mark A. Hershberger
29ed343b4c Fix parsertests so that they work even when server-side thumbnailing isn't configured. 2010-02-01 04:55:15 +00:00
Mark A. Hershberger
f16507a49c Make tests work, note skipped tests, update autoloader for FakeMemcachedClient, take care of strange variable scoping issues in autoloaded Namespace.php. 2010-01-11 03:47:04 +00:00
Tim Starling
6e6023740c Add NS_USER to MWNamespace::$alwaysCapitalizedNamespaces, as suggested by Happy-melon on CR r57558. Untested, but should be beneficial, allowing easier linking to users on wikis with $wgCapitalLinks=false. But redirects from invalid names to valid names, e.g. [[User:tim]] -> [[User:Tim]] will become inaccessible. r57558 itself suffers similar problems, inaccessible pages should really be cleaned up with a maintenance script. 2009-12-15 04:20:17 +00:00
Chad Horohoe
a4e5e935b6 Mass convert NULL -> null. Left strings and comments alone, obviously. 2009-12-11 21:07:27 +00:00
Chad Horohoe
6afbf91101 bug 9982. Encapsulate wgCanonicalNamespaceNames. Patch by Scott Colcord, with updates 2009-10-16 04:06:30 +00:00
Chad Horohoe
c319cc8968 (bug 13750) $wgCapitalLinks should be a per-namespace setting 2009-10-09 12:52:16 +00:00
Brion Vibber
2f1cee5b91 Cleanup r44683 -- fix E_NOTICE bug in MWNamespace::getCanonicalName() instead of replicating the function. :)
(Also note -- using MWNamespace instead of Namespace for PHP 5.3 compat.)
2008-12-16 23:57:21 +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
Siebrand Mazeland
36f42c9b15 (bug 44) Rename Image namespace to File. Based on a patch by brion.
* Parser tests updated. 14 failing parser tests before the change, added one, and the same 14 failing parser tests are remaining
* added namespace aliases for Image and Image_talk for backward compatibility purposes
2008-11-17 21:27:00 +00:00
Brion Vibber
201a3fc978 Revert 37530 -- removes the control option for image moving 2008-07-10 21:53:14 +00:00
Victor Vasiliev
75bebd2364 * Make image moving no longer experimental 2008-07-10 20:28:52 +00:00
Aryeh Gregor
4ed81df65f Code simplification (-205 bytes :P):
* Add MWNamespace::hasSubpages() and use that instead of $wgNamespacesWithSubpages everywhere
* Put early returns first, and don't else { } the rest of the code
2008-05-23 22:00:14 +00:00
Alexandre Emsenhuber
b5debc4f65 Doc tweaks:
* @ingrouo -> @ingroup (whoops!)
* Fix doxygen warnings
* Remove duplicate definition of $wgMetaNamespaceTalk in DefaultSettings.php, thanks to VasilievVV for pointing this out
2008-05-21 18:18:58 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
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.
2008-05-20 17:13:28 +00:00
Victor Vasiliev
8d85629c58 * (bug 709) Cannot rename/move images and other media files.
Currently in experimental mode, use $wgAllowImageMoving to enable it.
Known issues:
* Doesn't work with rev_deleted
* May also have some security and caching issues.
2008-05-03 13:09:34 +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
Aryeh Gregor
b9a8ffba8b Actually, revert r32370. It might be a good idea, but it breaks the UserGetRights hook (more than it already is). Could use some more thought. 2008-03-24 13:47:16 +00:00
Aryeh Gregor
73c025c25c Moving some optimization code into User::isAllowed instead of higher up in Title.php. Also, adding a comment so that people maybe aren't going to randomly remove it without thinking what it does. ;) 2008-03-24 13:40:45 +00:00
Brion Vibber
deb2045611 * (bug 12294) Namespace class renamed to MWNamespace for PHP 5.3 compatibility
* PHP 5.3 compatibility fix for wfRunHooks() called with no parameters

An autoloaded 'Namespace' class alias is retained for compatibility with
extensions which haven't updated to the new class name... however they too
will break on PHP 5.3. Yay!
2008-03-21 23:13:34 +00:00
Greg Sabino Mullane
a228c6e7d7 Make a note about the reserved word problem. 2007-12-16 15:39:24 +00:00
Rob Church
76409fecd7 Document all methods and mark them public 2007-08-14 01:14:42 +00:00
Rob Church
129abc4457 Improvements to the watchlist editor per Brion; diff the current watchlist against the list of wanted titles, speeds things up, avoids resetting notification timestamps and lets us show a couple of natty lists which make the user feel warm and fuzzy inside. Also, ignore titles which can't be watched - special, media, interwiki etc. 2007-07-05 18:20:46 +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
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Rob Church
7827500fda * Reset the release notes
* Fix site statistics when moving pages in/out of content namespaces (was treating all non-main namespaces as non-content)
2007-01-08 15:32:58 +00:00
Rotem Liss
c0d5b63588 Commited the categories redirect stuff by mistake. 2006-12-22 19:50:56 +00:00
Rotem Liss
d7a9acb13d Update. 2006-12-22 19:48:46 +00:00
Niklas Laxström
a77e0f4231 * Indentation, magic numbers 2006-11-27 22:55:12 +00:00
Antoine Musso
89d2c02702 Adding some more static statements 2006-07-10 18:53:15 +00:00
Antoine Musso
fd912a148b A lot more of static issues when using E_STRICT from the commandline. 2006-07-10 15:41:30 +00:00
Antoine Musso
5a5cc201b1 having some fun with doxygen error log 2006-06-10 18:28:50 +00:00
Rob Church
3e64af3615 Add TALKSPACE, SUBJECTSPACE, TALKPAGENAME, SUBJECTPAGENAME (and encoded forms for all) magic words 2006-04-12 15:38:17 +00:00
Tim Starling
730535c329 indenting 2006-03-06 13:52:21 +00:00
Domas Mituzas
8aabcc03d1 Be less anal about entry points, class definitions do no harm to anyone, defined() is expensive 2006-01-14 11:04:04 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Ævar Arnfjörð Bjarmason
d8e90514ab * Documentation: @private => @access private 2006-01-07 12:48:44 +00:00
Ævar Arnfjörð Bjarmason
1d15461a57 Code review!
* Don't start a new scope with if defined 'MEDIAWIKI...
2006-01-07 12:31:39 +00:00
Ævar Arnfjörð Bjarmason
e7fe879f24 * 0 => NS_MAIN
* Simplified Namespace::isMovable()
2005-12-21 02:35:20 +00:00
Ævar Arnfjörð Bjarmason
19fef3d49e * Added a isMain() function that's the inverse of isTalk(), am I supposed to be bothered to type "!" ? 2005-11-03 01:29:02 +00:00
Brion Vibber
01d7f48a69 * Fix interlanguage links on special pages when extra namespaces configured 2005-08-28 23:39:18 +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
Brion Vibber
b0c41ad13b * (bug 2885) Fix fatal errors and notices in PHP 5.1.0beta3
* (bug 2931) Fix additional notices on reference use in PHP 4.4.0
2005-07-22 11:29:15 +00:00
Ævar Arnfjörð Bjarmason
2bfac2e762 * Whitespace 2005-06-24 22:56:23 +00:00
Ævar Arnfjörð Bjarmason
e980f2a801 * Removing the second check for MEDIAWIKI, already checked at this point 2005-06-24 06:08:53 +00:00
Brion Vibber
0e6c27ae83 eat a couple more namespace cruft bits 2005-02-21 12:29:31 +00:00
Brion Vibber
7f9163f81c Remove use of undefined constants NS_THREAD and NS_THREAD_TALK which make it impossible to use the wiki with notice warnings on. 2005-02-03 20:42:36 +00:00
Guillaume Blanchard
b21090671d remove thread's talk page namespace 2004-12-21 16:09:36 +00:00