diff options
author | steckbrief <steckbrief@chefmail.de> | 2017-12-10 20:22:33 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2017-12-10 20:22:33 +0100 |
commit | 2ec5cbc2aa2fe992d2cccaf6d160950adef521ef (patch) | |
tree | 726ff2e5907825469d81ea8af9e900a864ebc4a6 /lib/functions.stories.inc.php | |
parent | 6bf09a069577fa9fcefdb0f92da81001465a50e0 (diff) |
create story and character improved
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; } } ?> |