mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-03-23 14:27:02 +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;
|
exit;
|
||||||
}
|
}
|
||||||
$htmlpurifier_c = preg_replace(
|
$htmlpurifier_c = preg_replace(
|
||||||
'/var \$version = \'.+?\';/',
|
'/public \$version = \'.+?\';/',
|
||||||
"var \$version = '$version';",
|
"public \$version = '$version';",
|
||||||
$htmlpurifier_c,
|
$htmlpurifier_c,
|
||||||
1, $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 = file_get_contents('library/HTMLPurifier/Config.php');
|
||||||
$config_c = preg_replace(
|
$config_c = preg_replace(
|
||||||
'/var \$version = \'.+?\';/',
|
'/public \$version = \'.+?\';/',
|
||||||
"var \$version = '$version';",
|
"public \$version = '$version';",
|
||||||
$config_c,
|
$config_c,
|
||||||
1, $c
|
1, $c
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user