Commit graph

42 commits

Author SHA1 Message Date
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
Guillaume Blanchard
eb1c01c252 missing ',' 2004-12-21 15:04:40 +00:00
Guillaume Blanchard
4bb7079f8a Reserved namespace 100 and 101 for forum-like's thread pages 2004-12-21 14:22:25 +00:00
Brion Vibber
6810e5a92e Fix register_globals vulnerability checked in last week. 2004-09-09 06:12:04 +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
Erik Moeller
f11ab4263b Custom namespaces:
To add a new namespace, just set $wgExtraNamespaces in LocalSettings.php.
Custom namespaces must begin at 100.
This is primarily intended to let us add a bunch of international versions
of the "Help:" namespace on Meta, so we can finally have a single place for
all documentation and easily dump/import it to other wikis.
2004-08-31 10:23:55 +00:00
Arne Heizmann
f621158326 NP_WIKIPEDIA => NP_PROJECT, and code readability stuff 2004-08-28 17:53:12 +00:00
Antoine Musso
3d60242fb5 massive double to single quotes conversion. I have not noticed any bug after a lot of testing 2004-08-22 17:24:50 +00:00
Tim Starling
cd2e8170d2 Ahh, so that's what that does 2004-08-12 06:54:58 +00:00
Brion Vibber
62e98ad47c Suppress some more warnings on separate execution of files. Shouldn't
be anything exploitable, it's just annoying.
2004-08-06 22:30:47 +00:00
Tim Starling
1773cd1e76 * Introducing bit field for database parameters
** Database constructor calling sequence, and Database::newFromParams()
** Including flags in the server initialisation structs
** Support for setting appropriate flags from legacy globals in Setup.php
** Moved some defines to Define.php so that they can be used in LocalSettings.php, most importantly the bit field constants

* Changes related to post-parse link colouring
** Turn the link cache back on when using it for updating the links table
** No longer need to call preFill() on page view

* Better synchronisation of slave servers
** Rearranged getConnection()
** System for beginning and committing transactions when multiple connections are open
** wfAbruptExit() commits transactions, wfErrorExit() does not. Various functions changed to use wfErrorAbort()

* Allowed reporting of database errors during deferred updates by moving them above output()
2004-07-24 07:24:04 +00:00
Brion Vibber
11bf1cd3b5 Disable renaming of category pages (this causes a number of problems
currently which make it a dubious thing to try to do). Fix HTML for
error display on move. Add error class to style sheets. Fix error call
in protect. Remove dupe function that was moved from skin to output.
2004-04-25 01:01:38 +00:00
Magnus Manske
071cae1ad4 Category namespaces 2004-04-20 21:33:03 +00:00
Magnus Manske
cc1fbbe002 Category namespaces 2004-04-20 21:30:59 +00:00
Magnus Manske
dfe7412cbd Category namespaces 2004-04-20 20:42:07 +00:00
Tim Starling
690a9e34e2 changed canonical name for NS 4 to "Project" 2004-04-09 15:21:05 +00:00
Tim Starling
c503774b28 Moved MAG_XXXX constants to MagicWord.php, changed canonical name for NS 4 to "MetaNamespace" 2004-04-09 07:02:29 +00:00
Tim Starling
ba00eafeae Added transformation to wfMsg output, allowing tags such as {{SITENAME}} and {{localurl:Special:Preferences}} in the language files and MediaWiki namespace 2004-04-05 10:38:40 +00:00
Tim Starling
a3282dfc45 template namespace is moveable 2004-03-23 10:25:52 +00:00
Erik Moeller
861a514de0 Help: namespace (en: only for now)
This is mainly intended for starting to develop a standard, site-independent
MediaWiki handbook that can be easily imported
2004-03-22 05:34:41 +00:00
Tim Starling
2ca258fd03 * Changed inclusion syntax to allow e.g. {{stub}}
* Split MediaWiki namespace into MediaWiki and Template (requires changes to all language files)
* Purge links to on edit of Template namespace
* General refactoring of purging and cache invalidation code
2004-03-20 15:03:26 +00:00
Tim Starling
840dee3ad4 * Fixed magic quotes in $_REQUEST, in Setup.php
* Converted many instances of globals from the query to $_REQUEST
* Renamed near-useless Title::getURL() to Title::getPartialURL()
* Created new Title::getURL(), to replace wfLocalUrl, wfLocalUrlE, wfFullUrl and wfFullUrlE. Replaced most instances throughout the code
* In Parser.php, generalised stripping of <nowiki>, <pre> and <math> to allow more general use such as nesting
* Moved body of Article::preSaveTransform to Parser.php
* Put lots of comments in Title.php
2004-03-06 01:49:16 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
036ff960ce Improvements in MediaWiki namespace handling, enhanced rollback 2003-12-14 14:29:35 +00:00
Brion Vibber
d9c99a1140 Move namespace constants from Language to Namespace 2003-11-15 12:53:17 +00:00
Tim Starling
46787701ce Nov. branch merge. Various features backported from stable, various bug fixes. 2003-11-09 11:45:12 +00:00
Lee Daniel Crocker
d82c14fb4f Initial revision 2003-04-14 23:10:40 +00:00