Commit graph

148 commits

Author SHA1 Message Date
Antoine Musso
b2597e226f some double quotes 2005-01-30 19:17:22 +00:00
Jens Frank
73bd28788c Bug#276 Make date format comply with RFC1123 and RFC2822 2005-01-22 09:02:17 +00:00
Brion Vibber
e95815ddff * Fix notice errors in wfDebugDieBacktrace() in XML callbacks
* Suppress notice error on bogus timestamp input (returns epoch as before)
2005-01-18 10:24:33 +00:00
Tom Gilder
c0dd017fab Various XHTML fixes 2005-01-16 02:57:30 +00:00
Brion Vibber
ce33214c38 fix typo 2004-12-23 04:01:53 +00:00
Brion Vibber
4778ec91eb Merge blocked user fix from REL1_4 2004-12-23 03:52:48 +00:00
Brion Vibber
b652f2fdf2 Add TS_RFC2822 output format for wfTimestamp to encapsulate the several manual formattings in this style 2004-12-19 11:11:52 +00:00
Brion Vibber
1753353797 Revert unauthorized changes made without discussion of outstanding objections.
Please rework this as an extension.
2004-12-10 05:02:23 +00:00
Nicholas Pisarro, Jr
28de6d99d2 New feature: You can edit summaries and change the Minor Edit flag.
* Documented at http://meta.wikimedia.org/wiki/Feature_to_edit_summaries
2004-12-10 04:49:27 +00:00
Zheng Zhu
b6f4bb64ea Added optional setting to allow UI messages act as content. 2004-12-09 03:00:49 +00:00
Zheng Zhu
7bee69578c more fixes for languages with no language files; allow UI customization for all languages. 2004-12-07 20:22:22 +00:00
Brion Vibber
949ef6a744 Profiling points. Bump version to 1.4.0beta0; update HISTORY notes to current 1.3; prepare for REL1_4 branch. 2004-12-01 08:46:48 +00:00
Evan Prodromou
4b42f18b66 Removed CVS keywords from files, to make merging between branches
easier. Interpolated keywords cause lots of conflicts and headaches at
merge time for older (<1.12.x) CVS versions.
2004-11-29 18:25:30 +00:00
Tim Starling
5de9529eb1 made connection errors work again 2004-11-29 12:36:43 +00:00
Brion Vibber
4efcaf0952 Remove some redundant checks; if these ever failed, PHP would have first thrown an error about not having required parameters to the function. 2004-11-24 11:43:42 +00:00
Brion Vibber
e87c20e7a3 Switch do_html_entity_decode() from using strtr() to preg_replace(), which is much faster on the common case (no match).
On pages with a large number of links (hundreds) this actually made up about 1/10 of the time spent in Parser::replaceInternalLinks().
2004-11-23 05:36:40 +00:00
Brion Vibber
4a32b8b079 Code formatting; comments. Removed debug option from wfMsg which could poison caches and be generally annoying if let into the wild. 2004-11-21 13:54:31 +00:00
Tim Starling
5f3b51db07 moving wfProfileIn() to the start of the function, adding warning suppression like I did in MessageCache.php 2004-10-23 08:21:39 +00:00
Brion Vibber
963901c8dd * Drop a couple instances of wfTimestamp2Unix & reverse for wfTimestamp()
* Make wfTimestampNow() a wrapper on wfTimestamp()
* Add some tests and docstrings
2004-10-19 07:12:15 +00:00
Brion Vibber
2a847aab34 Don't forget to urlencode the data in wfArrayToCGI() 2004-10-19 05:46:14 +00:00
Brion Vibber
005cab63d6 * add a require dependency
* allow do_html_entity_decode() to be called with different charsets during the script lifetime
2004-10-18 09:49:03 +00:00
Wil Mahan
2a03980093 Bug 589: make random selection slightly more random. PHP's
mt_rand() function has a maximum value of 2^31-1, which
is small enough that duplicate values can occur due to the
Birthday paradox, e.g. on the English Wikipedia. To fix
this, add a wfRandom() function that calls mt_rand()
twice to get the desired amount of randomness.
2004-10-11 17:34:39 +00:00
Brion Vibber
33d9c93803 * Remove deprecated wfLocalUrl(), wfLocalUrlE()
* Remove some duplication in wfUtf8Entity(), the guts now moved to UtfNormalUtil.php
* Moved $wgReplacementKeys to a static var
* Some comments and cleanup
2004-10-02 02:55:26 +00:00
Zheng Zhu
a8a113d22d fix fallback in wfMsgReal() as well 2004-09-26 00:00:52 +00:00
Zheng Zhu
ada3997051 first attempt to support multiple language variants in the MediaWiki: namespace. 2004-09-25 04:15:47 +00:00
Zheng Zhu
32c223e2a1 removed caching of UI messages; it does not make sense, after all. 2004-09-25 02:23:04 +00:00
Zheng Zhu
19004a27e8 new wfMsg* functions to use the wgContLang object for translating content related messages 2004-09-22 03:49:23 +00:00
Zheng Zhu
fa794e9f0e corrected testing the existence of an object 2004-09-21 00:48:45 +00:00
Jens Frank
744ab639f7 Cleaner handling of NoConvert, for variable number of arguments 2004-09-18 16:38:55 +00:00
Jens Frank
4e19e889aa Removed hardcodes for Zh-conversion 2004-09-17 05:58:28 +00:00
Zheng Zhu
f1cc605133 Do Simplified/Traditional Chinese conversion in wfMsgReal() when the language code is zh 2004-09-17 04:47:01 +00:00
Arne Heizmann
6f55251951 change all occurrences of "Mediawiki" to "MediaWiki". 2004-09-04 00:05:30 +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
b6024820fc More comments ! 2004-09-03 17:13:55 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Brion Vibber
d2246bff7c Adjust UTF-8 generator for correctness. (Upper private use area, probably affects nothing.) 2004-08-29 02:04:01 +00:00
Tim Starling
0f9c5b24fd Abstracted site name in LanguageFi.php. This required the implementation of general handling for inflected languages, in particular the {{grammar:}} tag 2004-08-27 14:55:41 +00:00
Brion Vibber
35c74af604 Start migrating wfCheckLimits to WebRequest::getLimitOffset() 2004-08-23 02:19:02 +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
595b892e25 Hey! Stop breaking my functions! 2004-08-21 14:14:58 +00:00
Brion Vibber
41c8b7bf72 Antiglobalization!
* Remove some unused and some useless functions from GlobalSettings.php
* wfEscapeHTML() replaced with PHP built-in htmlspecialchars().
* Moved some functions into Parser.php and Image.php
2004-08-13 15:55:59 +00:00
Tim Starling
631e737c7f added {{ to wfEscapeWikiText, so that the deletion log looks nicer (requested on #wikipedia) 2004-08-12 01:27:31 +00:00
Arne Heizmann
b28ab61f58 With &debugmsg=1, PHP output a warning because the link trail no longer
constituted a valid regular expression; fix that
2004-08-10 22:48:02 +00:00
Arne Heizmann
57fae72421 If &debugmsg=1 is passed as part of the request parameters, display all
the message keys instead of the actual messages.  I think this will be
very useful to sysops trying to find out what message in the MediaWiki
namespace to edit.  I hope this does not incur too much of a server
performance degradation, since this function is used pretty frequently.
2004-08-10 20:17:55 +00:00
Arne Heizmann
63a52404cb expand comment 2004-08-10 16:51:26 +00:00
Domas Mituzas
5af42946aa Add internal timestamp wrapper wfTimestamp($outputtype,$timestamp);
Obsoletes: wfTimestamp2Unix, wfUnix2Timestamp, wfTimestampNow;
Autodetects database, mediawiki and unix timestamps

to be done: inverted timestamp support
2004-08-10 08:28:43 +00:00
Brion Vibber
a55d07c1ef Suppress notices 2004-08-08 09:39:16 +00:00
Arne Heizmann
0b99c990f9 remove commented-out code. We have CVS for archiving it 2004-08-04 00:28:56 +00:00
Magnus Manske
6cd83364ec bug 964201 fix 2004-08-03 20:01:52 +00:00
Brion Vibber
b2ce8e4306 Fix typo in reference to sql file that needs to be run 2004-08-02 04:58:54 +00:00