@@ 127-129 (lines=3) @@ | ||
124 | * @param int $id |
|
125 | */ |
|
126 | public function album($id = 0) { |
|
127 | if (preg_match('/[A-Z]/', $this->uri->uri_string())) { |
|
128 | redirect(site_url(strtolower($this->uri->uri_string())), 'location', 301); |
|
129 | } |
|
130 | ||
131 | $album = $this->gallery_m->get_album($id); |
|
132 | if ($this->uri->total_segments() > 5) { |
|
@@ 204-206 (lines=3) @@ | ||
201 | * @param int $page |
|
202 | */ |
|
203 | public function thumbnails($id = 0, $page = 0) { |
|
204 | if (preg_match('/[A-Z]/', $this->uri->uri_string())) { |
|
205 | redirect(site_url(strtolower($this->uri->uri_string())), 'location', 301); |
|
206 | } |
|
207 | ||
208 | $album = $this->gallery_m->get_album($id, true, 15, $page * 15); |
|
209 |