From 66fa1ca8e3ae25af82fb43fb9f79342fc3f65787 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Sun, 26 Nov 2017 13:21:28 +0100 Subject: fixed some bugs in create story workflow, gitignore added --- .gitignore | 1 + .gitmodules | 1 + admin.html | 12 +++++++++--- createStory.php | 2 +- index.php | 6 +++--- lib/commons | 2 +- lib/functions.stories.inc.php | 33 +++++++++++++++++++++++++++++++++ lib/functions.stories.php | 33 --------------------------------- 8 files changed, 49 insertions(+), 41 deletions(-) create mode 100644 .gitignore create mode 100644 lib/functions.stories.inc.php delete mode 100644 lib/functions.stories.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b0b617d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +stories/** diff --git a/.gitmodules b/.gitmodules index e16573f..63f632e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ [submodule "lib/commons"] path = lib/commons url = gitosis@repos.thedevstack.de:user/tristan/thedevstack-php-commons + branch = master diff --git a/admin.html b/admin.html index ba5d37f..a17ff0f 100644 --- a/admin.html +++ b/admin.html @@ -6,7 +6,7 @@ - \ No newline at end of file + diff --git a/createStory.php b/createStory.php index 906a302..6a115d9 100644 --- a/createStory.php +++ b/createStory.php @@ -13,7 +13,7 @@ $storyName = getMandatoryPostParameter('story-name', '', true); $storyLogoFile = getOptionalPostParameter('story-logo'); $storyDescription = getOptionalPostParameter('story-description'); -$pathToStory = __DIR__.DIRECTORY_SEPARATOR.generateDirectoryName($storyName); +$pathToStory = __DIR__.DIRECTORY_SEPARATOR.'stories'.DIRECTORY_SEPARATOR.generateDirectoryName($storyName); $result = createEntity($pathToStory, $storyDescription, $storyLogoFile, 'logo.png'); if (TRUE !== $result) { diff --git a/index.php b/index.php index d4dff95..e8b6d5f 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,8 @@ - \ No newline at end of file + diff --git a/lib/commons b/lib/commons index 03cf2a2..b713fcf 160000 --- a/lib/commons +++ b/lib/commons @@ -1 +1 @@ -Subproject commit 03cf2a22fe227633cf901dc1d9cf1024b8d07b59 +Subproject commit b713fcfb99dc9c2061fef5e9d0c074aaf8aac4da diff --git a/lib/functions.stories.inc.php b/lib/functions.stories.inc.php new file mode 100644 index 0000000..a8102c3 --- /dev/null +++ b/lib/functions.stories.inc.php @@ -0,0 +1,33 @@ + diff --git a/lib/functions.stories.php b/lib/functions.stories.php deleted file mode 100644 index a8102c3..0000000 --- a/lib/functions.stories.php +++ /dev/null @@ -1,33 +0,0 @@ - -- cgit v1.2.3