mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 15:28:40 +00:00
Update release script to compensate for new variable format
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1476 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
ae1c8f47cc
commit
beefb11879
@ -66,8 +66,8 @@ if (!$c) {
|
||||
exit;
|
||||
}
|
||||
$htmlpurifier_c = preg_replace(
|
||||
'/var \$version = \'.+?\';/',
|
||||
"var \$version = '$version';",
|
||||
'/public \$version = \'.+?\';/',
|
||||
"public \$version = '$version';",
|
||||
$htmlpurifier_c,
|
||||
1, $c
|
||||
);
|
||||
@ -79,8 +79,8 @@ 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';",
|
||||
'/public \$version = \'.+?\';/',
|
||||
"public \$version = '$version';",
|
||||
$config_c,
|
||||
1, $c
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user