Commit graph

187 commits

Author SHA1 Message Date
Zheng Zhu
9aae1d5065 For content language, removed language code suffix from the message keys in the mediawiki: namespace. This way languages that do not support multiple variants will see no change in the way the namespace works. 2004-10-11 02:15:55 +00:00
Domas Mituzas
f5c50a9bf8 * cache standalone messages fetched from DB on memcached
*                                   from DB/memcached on MC:mCache
2004-10-05 11:18:43 +00:00
Domas Mituzas
c5b7002917 initial support for partial message cache, the way to have separated message
cache objects by scope and/or severity, though by leaving rarely used messages
standalone on db and/or cached daemons...
2004-10-04 20:36:11 +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
9ce3187366 Sorry I forgot to commit the fix... 2004-09-24 13:10:38 +00:00
Magnus Manske
fde2d0ba2a hotfix for undefined variable 2004-09-24 10:02:48 +00:00
Zheng Zhu
9b826b9bf7 passing the language object in as parameter when initializing the message cache 2004-09-24 00:09:42 +00:00
Zheng Zhu
cc632696ba Adding a wgContLang object to handle message translation for the content of the site; wgLang should be used exclusively for UI messages. 2004-09-22 03:32:56 +00:00
Arne Heizmann
5d1c3fa82e no real change. (rm trailing whitespace, convert leading spaces to tabs) 2004-09-20 14:55:25 +00:00
Tim Starling
e5e545aac9 suppress warnings before calling $wgLang->getMessage(), because many language files generate notices 2004-09-20 10:30:18 +00:00
Brion Vibber
b1f135446a Re-enable message transformations when we're done building the message list.
Fix for bug 435: Page footer variables not replaced when viewing Special:Allmessages
http://bugzilla.wikipedia.org/show_bug.cgi?id=435
2004-09-09 22:22:17 +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
Brion Vibber
9aafcca999 When using wfMsgNoDB(), *don't use the cached messsages!*
This restores Special:Allmessages to working order; previously it was
showing the MediaWiki: message in both columns, which is not too helpful.
2004-08-30 05:11:21 +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
9a1e009420 Fixed profiling 2004-08-20 14:50:03 +00:00
Brion Vibber
830e915970 Add some more profiling points 2004-08-19 08:44:13 +00:00
Brion Vibber
17513fbf00 Add MessageCache::clear and use it on initialise/rebuild of messages
to clear the object cache.
2004-08-11 02:31:47 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Tim Starling
14714b4135 trying to work around memcached problems on the live site 2004-07-10 01:15:23 +00:00
Tim Starling
e54370983e don't cache redirects created by the conversion script 2004-06-04 02:45:49 +00:00
Tim Starling
e3676a470c Introducing special page modular extensions, making the board vote special page the first of these.
* Moving common special page handling to SpecialPage.php
* Special page lists in the language classes are obsolete, replaced by the list in SpecialPage.php
* Special:Specialpages uses the standard page titles wfMsg(pagename) instead of the description list previously contained in the $wgSpecialPagesEn arrays
* Ability to add custom messages to the MessageCache. Overridable by the MediaWiki namespace.
* Moving board vote functionality from includes/SpecialBoardvote.php to extensions/BoardVote.php
2004-05-15 03:36:39 +00:00
Brion Vibber
0c2fba0ac4 Add an objectcache table for limited caching when memcached isn't
available. Currently using for the message cache to avoid reading
every message separately. This now is only slightly slower than
memcached in my tests when $wgUseDatabaseMessages is enabled, so
it's a bit of a speedup for common hosts.
2004-05-09 05:12:55 +00:00
Gabriel Wicke
cd57f720dc added way to swich off message expansion 2004-05-03 10:21:26 +00:00
Tim Starling
fe7e324ea0 fixed notices 2004-04-07 13:59:15 +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
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
Brion Vibber
9e53bfc81c Imported the register_globals hack from REL1_2. Also starting work on
elimination of the use of import_request_variables (which gives us all
the insecurity of register_globals). Uncomment the define of DEBUG_GLOBALS
in index.php to turn on extra error reporting and trace down use of
uninitialized variables and nassssty globals.

Also rearranged the magic_quotes fixing, may not yet cover everything...
2004-03-08 01:51:32 +00:00
Brion Vibber
f46917fd9b Clear message cache on rebuild 2004-03-01 05:51:55 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
60b24cbc82 bug fix 2004-01-25 12:38:44 +00:00
Tim Starling
318518574f Using UTF-8 compatible ucfirst/lcfirst -- bug fix 2004-01-25 08:49:45 +00:00
Tim Starling
ade63094c4 Using UTF-8 compatible ucfirst/lcfirst 2004-01-25 05:57:02 +00:00
Tim Starling
eb62492e27 Fixed initialisation order to make it slightly more robust 2004-01-07 13:05:27 +00:00
Tim Starling
edf6b38626 MediaWiki namespace handling, mostly consolidated from GlobalFunctions.php and Article.php, with some enhancements 2003-12-14 14:32:19 +00:00