* Introduced StringUtils.php, populated it with some generic string functions, both...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 21 Nov 2006 09:53:45 +0000 (09:53 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 21 Nov 2006 09:53:45 +0000 (09:53 +0000)
commit2f12a58d93a4783acb97956c945d0f28875e42c4
tree574c2e839bb464977d6fa231445f9ee0fe54a70b
parent02efcccdbf20686fd8e27cf94bdc9b462417aa6e
* Introduced StringUtils.php, populated it with some generic string functions, both new and collected from various other files.
* Removed some backtracking regexes with an O(N^2) worst case, replaced with StringUtils::delimiterReplace(). There is a beneficial functional difference: /*/ is no longer considered to be a complete CSS comment.
* Changed the parser strip state from an array to an object. This should hopefully avoid the PHP bugs with array references. StripState uses the new ReplacementArray to do the replacements, thereby supporting FSS.
* Removed DatabaseFunctions.php from the default startup sequence. Moved wfGetDB() to GlobalFunctions.php.
* Introduced the SiteStats class, with a collection of cached site stats accessor functions.
* Removed all global functions from Parser.php, they don't belong there.
* Made LanguageConverter use the new ReplacementArray class instead of managing its own FSS objects.
22 files changed:
includes/AutoLoader.php
includes/BagOStuff.php
includes/Block.php
includes/CoreParserFunctions.php
includes/Database.php
includes/DatabaseFunctions.php
includes/GlobalFunctions.php
includes/Image.php
includes/Linker.php
includes/MagicWord.php
includes/Parser.php
includes/Sanitizer.php
includes/SiteStats.php [new file with mode: 0644]
includes/SiteStatsUpdate.php [deleted file]
includes/SpecialStatistics.php
includes/SpecialWatchlist.php
includes/Xml.php
languages/LanguageConverter.php
languages/classes/LanguageKk.php
languages/classes/LanguageSr.php
languages/classes/LanguageZh.php
maintenance/namespace2sql.php