Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
Fix bug mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent committed Sep 1, 2014
1 parent e9ee030 commit 6eba38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
$filenamePretty = "cache/$project/$path.txt";
if (!file_exists($filenamePretty) || filemtime($filenamePretty) <= filemtime($filename) || isset($_REQUEST['redo'])) {
if (is_dir(dirname($filenamePretty))) {
if (!is_dir(dirname($filenamePretty))) {
mkdir(dirname($filenamePretty), 0777, true);
}
$cmd = 'FILE="'.$filenamePretty.'" vim -e +"source ./highlight.vim" '.escapeshellarg($filename).' 2>&1';
Expand Down

0 comments on commit 6eba38e

Please sign in to comment.