Permalink
Browse files

Slight tweaks. Improved album pagination. Fixed flash message when un…

…publishing a photo.
  • Loading branch information...
1 parent 9cf0fb7 commit e2e72a714248fe92f0f37267efbed46ef2a95aa1 abenson committed May 8, 2012
Showing with 6 additions and 5 deletions.
  1. +5 −4 application/controllers/album.php
  2. +1 −1 application/controllers/image.php
View
9 application/controllers/album.php
@@ -85,14 +85,14 @@ public function index()
$config['per_page'] = $per_page;
$config['full_tag_open'] = '<div class="pagination"><ul>';
$config['full_tag_close'] = '</ul></div>';
- $config['first_link'] = FALSE;
- $config['last_link'] = FALSE;
+ $config['first_link'] = '&larr; First';
+ $config['last_link'] = 'Last &rarr;';
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
- $config['prev_link'] = '&larr; Previous';
+ $config['prev_link'] = 'Previous';
$config['prev_tag_open'] = '<li class="prev">';
$config['prev_tag_close'] = '</li>';
- $config['next_link'] = 'Next &rarr;';
+ $config['next_link'] = 'Next';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['last_tag_open'] = '<li>';
@@ -101,6 +101,7 @@ public function index()
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
+ $config['num_links'] = 4;
$this->pagination->initialize($config);
View
2 application/controllers/image.php
@@ -250,7 +250,7 @@ public function publish($album_id, $image_id)
public function unpublish($album_id, $image_id)
{
$this->image_model->update(array('published' => 0), $image_id);
- $this->session->set_flashdata('flash_message', "Successfully published image.");
+ $this->session->set_flashdata('flash_message', "Successfully unpublished image.");
redirect("album/images/$album_id");
}

0 comments on commit e2e72a7

Please sign in to comment.