Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Moving install files to plugins/boot.conf requires checking if the pa…
Browse files Browse the repository at this point in the history
…rent folder properly exists or not.
  • Loading branch information
cdujeu committed Sep 13, 2016
1 parent 167a494 commit 8031274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions core/src/core/src/pydio/Core/Utils/ApplicationState.php
Expand Up @@ -46,6 +46,9 @@ public static function detectApplicationFirstRun()
*/
public static function setApplicationFirstRunPassed()
{
if(!is_file(AJXP_DATA_PATH . "/plugins/boot.conf")){
@mkdir(AJXP_DATA_PATH . "/plugins/boot.conf", 0666, true);
}
@file_put_contents(AJXP_DATA_PATH . "/plugins/boot.conf/first_run_passed", "true");
}

Expand Down
Expand Up @@ -173,7 +173,9 @@ public static function testResultsToFile($outputArray, $testedParams)
echo ';';
$content = '<?php ' . ob_get_contents() . ' ?>';
ob_end_clean();
//print_r($content);
if(!file_exists(dirname(TESTS_RESULT_FILE))){
mkdir(dirname(TESTS_RESULT_FILE), 0666, true);
}
file_put_contents(TESTS_RESULT_FILE, $content);
}
}

0 comments on commit 8031274

Please sign in to comment.