0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-09 23:28:42 +00:00

[3.1.0] version -> VERSION

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1693 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2008-04-25 05:47:36 +00:00
parent 6d9643a92e
commit 04b1ec33cb
3 changed files with 4 additions and 3 deletions

1
NEWS
View File

@ -24,6 +24,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
+ HTMLPurifier_LanguageFactory::instance() + HTMLPurifier_LanguageFactory::instance()
# Printer_ConfigForm's get*() functions were static-ified # Printer_ConfigForm's get*() functions were static-ified
! Allow index to be false for config from form creation ! Allow index to be false for config from form creation
! Added HTMLPurifier::VERSION constant
- InterchangeBuilder now alphabetizes its lists - InterchangeBuilder now alphabetizes its lists
- Validation error in configdoc output fixed - Validation error in configdoc output fixed
- Iconv and other encoding errors muted even with custom error handlers that - Iconv and other encoding errors muted even with custom error handlers that

View File

@ -58,7 +58,7 @@ class HTMLPurifier
public $version = '3.1.0-dev'; public $version = '3.1.0-dev';
/** Constant with version of HTML Purifier */ /** Constant with version of HTML Purifier */
const version = '3.1.0-dev'; const VERSION = '3.1.0-dev';
/** Global configuration object */ /** Global configuration object */
public $config; public $config;

View File

@ -78,8 +78,8 @@ if (!$c) {
exit; exit;
} }
$htmlpurifier_c = preg_replace( $htmlpurifier_c = preg_replace(
'/const version = \'.+?\';/', '/const VERSION = \'.+?\';/',
"const version = '$version';", "const VERSION = '$version';",
$htmlpurifier_c, $htmlpurifier_c,
1, $c 1, $c
); );