diff --git a/.gitignore b/.gitignore index dbac8bc..983cd64 100755 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -/config/config.php -/config/database.yml /log/* /public/assets /public/data diff --git a/app/controllers/PostController.php b/app/controllers/PostController.php index e558788..c6d5e5d 100755 --- a/app/controllers/PostController.php +++ b/app/controllers/PostController.php @@ -1038,7 +1038,7 @@ public function import() # Take folders as tags if (is_int(strpos($post['filename'], '/'))) { - $folders = str_replace('#', ':', $post['filename']); + $folders = str_replace('~', ':', $post['filename']); $tags = array_filter(array_unique(array_merge(explode(' ', $post['tags']), explode('/', $folders)))); array_pop($tags); $post['tags'] = trim($post['tags'].' '.implode(' ', $tags)); diff --git a/config/config.php b/config/config.php new file mode 100644 index 0000000..b65f65c --- /dev/null +++ b/config/config.php @@ -0,0 +1,26 @@ +