Removed EXT constant and excessive else statement.
diff --git a/user_guide/tutorial/news_section.html b/user_guide/tutorial/news_section.html
index 8d88999..191f0e1 100644
--- a/user_guide/tutorial/news_section.html
+++ b/user_guide/tutorial/news_section.html
@@ -105,12 +105,9 @@
return $query->result_array();
}
- else
- {
- $query = $this->db->get_where('news', array('slug' => $slug));
- return $query->row_array();
-
- }
+
+ $query = $this->db->get_where('news', array('slug' => $slug));
+ return $query->row_array();
}
</pre>
diff --git a/user_guide/tutorial/static_pages.html b/user_guide/tutorial/static_pages.html
index d5eec43..bf52f45 100644
--- a/user_guide/tutorial/static_pages.html
+++ b/user_guide/tutorial/static_pages.html
@@ -137,7 +137,7 @@
function view($page = 'home')
{
- if ( ! file_exists('application/views/pages/' . $page . EXT))
+ if ( ! file_exists('application/views/pages/' . $page . '.php'))
{
// Whoops, we don't have a page for that!
show_404();