mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-18 11:41:52 +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:
parent
6d9643a92e
commit
04b1ec33cb
1
NEWS
1
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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user