diff options
Diffstat (limited to 'lib/functions.stories.inc.php')
-rw-r--r-- | lib/functions.stories.inc.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/functions.stories.inc.php b/lib/functions.stories.inc.php index a8102c3..b882869 100644 --- a/lib/functions.stories.inc.php +++ b/lib/functions.stories.inc.php @@ -9,8 +9,8 @@ function visibleName($nameWithUnderscore) { return urldecode($nameWithUnderscore); } -function generateDirectoryName($storyName) { - return urlencode($storyName); +function generateDirectoryName($name) { + return urlencode($name); } function createEntity($path, $description, $file, $filename) { @@ -27,7 +27,11 @@ function createEntity($path, $description, $file, $filename) { } } else { // Error on directory creation + // return 'Could not create directory "'.$path; + return 2; } + } else { + return 1; } } ?> |