From 04b1ec33cbcfaf14c6c5256be63f33f7ff282de8 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Fri, 25 Apr 2008 05:47:36 +0000 Subject: [PATCH] [3.1.0] version -> VERSION git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1693 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 1 + library/HTMLPurifier.php | 2 +- release1-update.php | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) 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 );