1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

[3.1.0] Create decorator validator/adapter for Interchange.

- Output flush output

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1587 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-03-02 04:00:43 +00:00
parent d81bcbd208
commit 0d9c05d13c
7 changed files with 99 additions and 24 deletions

View File

@@ -71,7 +71,11 @@ require 'HTMLPurifier/Harness.php';
// Shell-script code is executed
if ($AC['flush']) {
shell_exec($AC['php'] . ' ../maintenance/flush.php');
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