1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-06 22:26:31 +02:00

- Rename Duplicate to Unique, as the name of validator indicates what we want the input to be

- Enable flush to work when includes are renamed

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1597 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-03-04 04:20:55 +00:00
parent 4c798bd17e
commit 14437cbf47
7 changed files with 15 additions and 39 deletions

View File

@@ -57,6 +57,16 @@ if ($AC['disable-phpt'] && $AC['only-phpt']) {
exit(1);
}
// Shell-script code is executed
if ($AC['flush']) {
if (SimpleReporter::inCli() && !$AC['xml']) {
passthru($AC['php'] . ' ../maintenance/flush.php');
} else {
shell_exec($AC['php'] . ' ../maintenance/flush.php');
}
}
// initialize and load HTML Purifier
// use ?standalone to load the alterative standalone stub
if ($AC['standalone']) {
@@ -68,16 +78,6 @@ if ($AC['standalone']) {
}
require 'HTMLPurifier/Harness.php';
// Shell-script code is executed
if ($AC['flush']) {
if (SimpleReporter::inCli() && !$AC['xml']) {
passthru($AC['php'] . ' ../maintenance/flush.php');
} else {
shell_exec($AC['php'] . ' ../maintenance/flush.php');
}
}
// Now, userland code begins to be executed
// setup special DefinitionCacheFactory decorator