diff --git a/NEWS b/NEWS index 6d0d2539..a3adf89a 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier + HTMLPurifier_LanguageFactory::instance() # Printer_ConfigForm's get*() functions were static-ified ! Allow index to be false for config from form creation +! Added HTMLPurifier::VERSION constant - InterchangeBuilder now alphabetizes its lists - Validation error in configdoc output fixed - Iconv and other encoding errors muted even with custom error handlers that diff --git a/library/HTMLPurifier.php b/library/HTMLPurifier.php index 135b9a0d..91008f42 100644 --- a/library/HTMLPurifier.php +++ b/library/HTMLPurifier.php @@ -58,7 +58,7 @@ class HTMLPurifier public $version = '3.1.0-dev'; /** Constant with version of HTML Purifier */ - const version = '3.1.0-dev'; + const VERSION = '3.1.0-dev'; /** Global configuration object */ public $config; diff --git a/release1-update.php b/release1-update.php index 8f02c16b..20aa0bb7 100644 --- a/release1-update.php +++ b/release1-update.php @@ -78,8 +78,8 @@ if (!$c) { exit; } $htmlpurifier_c = preg_replace( - '/const version = \'.+?\';/', - "const version = '$version';", + '/const VERSION = \'.+?\';/', + "const VERSION = '$version';", $htmlpurifier_c, 1, $c );