Commit graph

3622 commits

Author SHA1 Message Date
Brion Vibber
ccb8a679af Namespace cleanup: use constants, use $wgMetaNamespace instead of hardcoding 'Wikipedia', add Category 2004-10-24 06:40:07 +00:00
Brion Vibber
68e073d979 Stub file for Gujarati, includes numeral conversion table 2004-10-24 06:17:12 +00:00
Brion Vibber
e129788d74 Language-specific number formatting in category page headers (for Hindi etc) 2004-10-24 05:49:54 +00:00
Brion Vibber
af4f7ee759 spelling 2004-10-24 05:48:54 +00:00
Tim Starling
1aa60b1361 Fixing multiple-inclusion problems 2004-10-24 02:13:00 +00:00
Tim Starling
cde9474e33 Changed inclusion style, require_once('includes/SpecialPage.php') was allowing duplicate inclusion in command-line utilities 2004-10-24 01:56:23 +00:00
Erik Moeller
d4fbed498c note on safe_mode 2004-10-23 23:32:08 +00:00
Antoine Musso
1e44fc0668 Patch by Grin 2004-10-23 18:09:29 +00:00
Jens Frank
7451acdbc0 Applied changes from BUG#748, attachment http://bugzilla.wikipedia.org/attachment.cgi?id=108 2004-10-23 18:02:40 +00:00
Antoine Musso
e5c15ba9d8 update namespaces 2004-10-23 17:45:37 +00:00
Antoine Musso
9807fa9aea update namespaces 2004-10-23 17:34:25 +00:00
Zheng Zhu
2f305c082a forgot to move the comment 2004-10-23 13:00:33 +00:00
Tim Starling
fd2f171082 turck only works as an apache module 2004-10-23 10:37:18 +00:00
Tim Starling
ac7279aa6e Using wfSuppressWarnings() instead of the error suppression operator, to avoid the blank page syndrome 2004-10-23 10:24:13 +00:00
Tim Starling
94a1c9e159 Fixed bug due to non-global scope when included from Setup.php 2004-10-23 10:23:05 +00:00
Tim Starling
f2102da371 Debug info 2004-10-23 10:22:38 +00:00
Tim Starling
d00451fa19 Fixed bug with Turck MMCache wrapper, and made it the default where Turck is installed (except if memcached is specified) 2004-10-23 10:21:23 +00:00
Tim Starling
25b60fa1a0 fixed profiling error 2004-10-23 10:20:38 +00:00
Brion Vibber
cfd54324d9 Add initial tests for Article::getRevisionText and Article::compressRevision 2004-10-23 09:19:00 +00:00
Tim Starling
7604ffd560 Moved user_newtalk fetch to later in execution, i.e. on demand. This should reduce total query count, and also allows connection errors to work again. 2004-10-23 08:26:48 +00:00
Tim Starling
4f4cdf87a3 rm obsolete global 2004-10-23 08:24:24 +00:00
Tim Starling
97dc6c150c correcting for what was probably an odd one-off error 2004-10-23 08:23:13 +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
73a7c1fb71 Kludge for the present state of PHPTAL 1.0.0's i18n:attributes, which isn't backwards-compatible with PHPTAL 0.7.0's version 2004-10-23 07:37:48 +00:00
Brion Vibber
2e7cecdeb6 Remove $wgCurParser kludge 2004-10-23 07:10:37 +00:00
Tim Starling
a73ed5230e alsatian, inheriting from de 2004-10-23 01:07:38 +00:00
Tim Starling
440fac9bb7 renaming 2004-10-23 00:43:39 +00:00
Tim Starling
a829cc0602 stub inheriting from de 2004-10-23 00:00:57 +00:00
Erik Moeller
0d02b52702 Preliminary support for shared upload directory. This is primarily intended
for the Wikimedia Commons. If $wgUseSharedUploads is set, MediaWiki will try
to locate an image file in the shared upload directory if it is not found
locally. Thumbnails for shared images will also be generated in the
shared directory.

Note: I changed
                $text = $this->replaceInternalLinks ( $text );
                $text = $this->replaceExternalLinks( $text );
to
                $text = $this->replaceExternalLinks( $text );
                $text = $this->replaceInternalLinks ( $text );

in Parser.php. Otherwise [[Media:Bla.jpg]] to an absolute URL would be
incorrectly parsed as external links. The header of
replaceExternalLinks says:

        Note: we have to do external links before the internal ones

So the old order was not consistent with the documentation. I did some
tests and nothing seems to be broken, but I have some problems executing
parserTests.php so I couldn't test it systematically.
2004-10-21 05:04:14 +00:00
Zheng Zhu
d14181afe1 Add variant conversion to the output of these special pages 2004-10-21 03:36:19 +00:00
Zheng Zhu
ccf6536d52 Moving code that checks for valid link in another variant from Parser.php to Language.php 2004-10-21 02:47:51 +00:00
Jens Frank
dc050c492f als: Elsaessisch -> Alemannisch 2004-10-20 20:29:40 +00:00
Jens Frank
2010170d6f http://bugzilla.wikipedia.org/show_bug.cgi?id=748
Nynorsk language file
2004-10-20 20:18:26 +00:00
Brion Vibber
8ffff3e2e0 Reorganization of SearchEngine for legibility
* Removed 'fuzzy title search', it's not been maintained and generally produces unexpected and unwanted results
* Separated search guts (in SearchEngine) from display/control (in SpecialSearch)
* Extracted MySQL3 and MySQL4 variants to subclasses
* Added PHPUnit tests for MySQL3 and MySQL4 search engines, which try to use temporary tables to fiddle in (if configured)
* comments n stuff
2004-10-20 09:56:34 +00:00
Zheng Zhu
64829524a8 Forgot to changed these... 2004-10-20 02:18:42 +00:00
Zheng Zhu
f8b206a31f special conversion for displaying title 2004-10-19 18:03:58 +00:00
Zheng Zhu
b6093aad4e Added option wgDisableLangConversion to disable langauge variant conversion, mainly for debugging and testing purpose. 2004-10-19 18:02:44 +00:00
Zheng Zhu
14bcfe4c50 fix NS_PROJECT*, and formatting 2004-10-19 17:52:23 +00:00
Zheng Zhu
7bb0a0b64b removed double conversion of linked text. 2004-10-19 17:44:00 +00:00
Zheng Zhu
b604c6725f Added code to generate a wordlist from the various sources. 2004-10-19 16:54:07 +00:00
Brion Vibber
8e9174f253 Add more globals tests 2004-10-19 08:38:08 +00:00
Brion Vibber
da056c312e (bug 737) only use the post-parse link placeholders within replaceInternalLinks().
The recent move of the replacement step from OutputPage into Parser completely
broke a crapload of special pages; this makes the links show again.
2004-10-19 07:30:56 +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
Zheng Zhu
b15a98c300 fixes Bug 718: Bad charset in cached pages. 2004-10-18 18:13:39 +00:00
Brion Vibber
27ba25bf40 * Start on some unit tests for GlobalFunctions
* Add makefile & readme for the lazy
2004-10-18 09:53:47 +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
Brion Vibber
700657227f Clean up options code a bit to make use of commandLine.inc's parsing 2004-10-18 08:11:06 +00:00
Brion Vibber
ee69a12255 Support setting values for long options like --color=yes 2004-10-18 08:10:22 +00:00
Brion Vibber
881b36f316 * Add support for prepared statements. This should be safer than dumping variables into raw SQL and more flexible than the array-based wrapper functions
* Add some quick PHPUnit tests for Database::fillPrepared()
2004-10-18 07:25:56 +00:00