controllers: pelican: fix draft path trailing slash
Change-Id: Iba3a9ffaf6dba6c3250cc85d3bc81ba2a1fff4d7
(cherry picked from commit 4680a71fe0210a4e86256dbe288ba1daa52cadbc)
diff --git a/application/controllers/Pelican.php b/application/controllers/Pelican.php
index 56dc072..27b5b9f 100644
--- a/application/controllers/Pelican.php
+++ b/application/controllers/Pelican.php
@@ -49,7 +49,7 @@
public function public_draft($file_name = 'index')
{
$file_html = $file_name.'.html';
- if ($this->is_valid_file('views/blog/draft', $file_html))
+ if ($this->is_valid_file('views/blog/draft/', $file_html))
{
$this->load->view('blog/draft/'.$file_html);
}