mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 00:41:52 +00:00
Make directory recursive.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1521 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
fd81fbac82
commit
40d7a296b5
@ -68,7 +68,7 @@ function create_blank($file) {
|
|||||||
$dir = dirname($file);
|
$dir = dirname($file);
|
||||||
$base = realpath('../tests/blanks/') . DIRECTORY_SEPARATOR ;
|
$base = realpath('../tests/blanks/') . DIRECTORY_SEPARATOR ;
|
||||||
if ($dir != '.') {
|
if ($dir != '.') {
|
||||||
$FS->mkdir($base . $dir);
|
$FS->mkdirr($base . $dir);
|
||||||
}
|
}
|
||||||
file_put_contents($base . $file, '');
|
file_put_contents($base . $file, '');
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ function make_dir_standalone($dir) {
|
|||||||
*/
|
*/
|
||||||
function make_file_standalone($file) {
|
function make_file_standalone($file) {
|
||||||
global $FS;
|
global $FS;
|
||||||
$FS->mkdir('standalone/' . dirname($file));
|
$FS->mkdirr('standalone/' . dirname($file));
|
||||||
copy_and_remove_includes($file, 'standalone/' . $file);
|
copy_and_remove_includes($file, 'standalone/' . $file);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -143,7 +143,7 @@ echo 'Creating standalone directory...';
|
|||||||
$FS->rmdirr('standalone'); // ensure a clean copy
|
$FS->rmdirr('standalone'); // ensure a clean copy
|
||||||
|
|
||||||
// data files
|
// data files
|
||||||
$FS->mkdir('standalone/HTMLPurifier/DefinitionCache/Serializer');
|
$FS->mkdirr('standalone/HTMLPurifier/DefinitionCache/Serializer');
|
||||||
make_dir_standalone('HTMLPurifier/EntityLookup');
|
make_dir_standalone('HTMLPurifier/EntityLookup');
|
||||||
|
|
||||||
// non-standard inclusion setup
|
// non-standard inclusion setup
|
||||||
|
Loading…
Reference in New Issue
Block a user