Permalink
Browse files

Moving install files to plugins/boot.conf requires checking if the pa…

…rent folder properly exists or not.
  • Loading branch information...
1 parent 167a494 commit 803127441ad69236da486a2b6f8bc0cdd857ca8c @cdujeu cdujeu committed Sep 13, 2016
@@ -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");
}
@@ -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.