Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #21 from abrad45/master

Minor edits to /api-www/add-draft.php and /Engine/update.sh
  • Loading branch information...
commit fa66b641cc21283911e5a61c833fa8435632df9a 2 parents 7c60d7e + e61edf7
@marcoarment authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  api-www/add-draft.php
  2. +1 −1  engine/update.sh
View
2  api-www/add-draft.php
@@ -66,7 +66,7 @@
if (! file_exists($output_path)) die("Drafts path doesn't exist: [$output_path]");
if (! is_writable($output_path)) die("Drafts path isn't writable: [$output_path]");
-$output_filename = $output_path . '/' . $slug . '.txt';
+$output_filename = $output_path . '/' . $slug . Updater::$post_extension;
if (! file_put_contents($output_filename, $draft_contents)) die('File write failed');
if (! chmod($output_filename, 0666)) die('File permission-set failed');
View
2  engine/update.sh
@@ -2,7 +2,7 @@
if [ "$1" == "" -o "$2" == "" ] ; then
echo ""
- echo "Usage: updater.sh SOURCE_PATH SECONDCRACK_PATH"
+ echo "Usage: update.sh SOURCE_PATH SECONDCRACK_PATH"
echo " where SOURCE_PATH contains /posts, /templates, ..."
echo " and SECONDCRACK_PATH contains /cache, /engine, ..."
echo ""
Please sign in to comment.
Something went wrong with that request. Please try again.