summaryrefslogtreecommitdiffstats
path: root/lib/functions.stories.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/functions.stories.inc.php')
-rw-r--r--lib/functions.stories.inc.php8
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;
}
}
?>