route: controllers: fix typo s/gitles/gitiles
Change-Id: I530900ea066cfd988f5205f4ce08d745a5b812cc
(cherry picked from commit 6115156559078e391c47d6b2b2e7ac42789c4979)
diff --git a/application/config/routes.php b/application/config/routes.php
index 5aadce0..9a46012 100644
--- a/application/config/routes.php
+++ b/application/config/routes.php
@@ -56,7 +56,7 @@
$route['^(author|a)$'] = 'pelican/public_root/authors';
$route['^(blog|b)$'] = 'pelican/public_root/blog';
$route['^(category|c)$'] = 'pelican/public_root/categories';
-$route['^gitles$'] = 'pelican/public_gitles';
+$route['^gitiles$'] = 'pelican/public_gitiles';
$route['^(home|h)$'] = 'pelican/public_root/index';
$route['^(/|index|i)$'] = 'pelican/public_root/index';
$route['^(tag|t)$'] = 'pelican/public_root/tags';
diff --git a/application/controllers/Pelican.php b/application/controllers/Pelican.php
index daefb17..56dc072 100644
--- a/application/controllers/Pelican.php
+++ b/application/controllers/Pelican.php
@@ -59,10 +59,10 @@
}
}
- public function public_gitles()
+ public function public_gitiles()
{
- $gerrit_gitles = '/gerrit/plugins/gitiles/';
- header('Location: https://'.$_SERVER['HTTP_HOST'].$gerrit_gitles);
+ $gerrit_gitiles = '/gerrit/plugins/gitiles/';
+ header('Location: https://'.$_SERVER['HTTP_HOST'].$gerrit_gitiles);
}
public function public_page($file_name = 'index')