mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-18 20:02:42 +02:00
[1.7.0] Add missing functions for DefinitionCache: replace, flush and type-checking
- Add version to configuration object, and have update script change it accordingly git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1095 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -77,6 +77,19 @@ if (!$c) {
|
||||
}
|
||||
file_put_contents('library/HTMLPurifier.php', $htmlpurifier_c);
|
||||
|
||||
$config_c = file_get_contents('library/HTMLPurifier/Config.php');
|
||||
$config_c = preg_replace(
|
||||
'/var \$version = \'.+?\';/',
|
||||
"var \$version = '$version';",
|
||||
$config_c,
|
||||
1, $c
|
||||
);
|
||||
if (!$c) {
|
||||
echo 'Could not update Config.php, missing var $version.' . PHP_EOL;
|
||||
exit;
|
||||
}
|
||||
file_put_contents('library/HTMLPurifier/Config.php', $config_c);
|
||||
|
||||
echo "Review changes, write something in WHATSNEW, and then SVN commit with log 'Release $version.'" . PHP_EOL;
|
||||
|
||||
?>
|
Reference in New Issue
Block a user