From 6380420070def2e40d1e9d3ed6fd1cbc202b917c Mon Sep 17 00:00:00 2001 From: Arslan Hassan Date: Sat, 14 May 2011 10:10:58 +0000 Subject: [PATCH] Fixed : Pagination error --- upload/includes/classes/collections.class.php | 2 +- upload/includes/classes/pages.class.php | 2 +- upload/includes/classes/photos.class.php | 2 +- upload/includes/defined_links.php | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/upload/includes/classes/collections.class.php b/upload/includes/classes/collections.class.php index 4c9912cd..336e41a9 100644 --- a/upload/includes/classes/collections.class.php +++ b/upload/includes/classes/collections.class.php @@ -89,7 +89,7 @@ class Collections extends CBCategory // Adding Collection links in Cbucket Class - $Cbucket->links['collections'] = array('collections.php','collections'); + $Cbucket->links['collections'] = array('collections.php','collections/'); $Cbucket->links['manage_collections'] = array('manage_collections.php','manage_collections.php'); $Cbucket->links['edit_collection'] = array('manage_collections.php?mode=edit_collection&cid=', 'manage_collections.php?mode=edit_collection&cid='); diff --git a/upload/includes/classes/pages.class.php b/upload/includes/classes/pages.class.php index bb040e2e..b90e644a 100644 --- a/upload/includes/classes/pages.class.php +++ b/upload/includes/classes/pages.class.php @@ -214,7 +214,7 @@ class pages{ if(count($_GET)==0 || (count($_GET)==1 && isset($_GET['page']))) $params = $params; else - $params ='href="'.$page.'"'; + $params ='href="./'.$page.'"'; } $final_link = preg_replace(array("/$page_pattern/i","/$param_pattern/i"),array($page,$params),$tag); diff --git a/upload/includes/classes/photos.class.php b/upload/includes/classes/photos.class.php index 895d2238..b7d7ddf9 100644 --- a/upload/includes/classes/photos.class.php +++ b/upload/includes/classes/photos.class.php @@ -145,7 +145,7 @@ class CBPhotos //Setting Cbucket links - $Cbucket->links['photos'] = array('photos.php','photos'); + $Cbucket->links['photos'] = array('photos.php','photos/'); $Cbucket->links['manage_photos'] = array('manage_photos.php','manage_photos.php'); $Cbucket->links['edit_photo'] = array('edit_photo.php?photo=','edit_photo.php?photo='); $Cbucket->links['photo_upload'] = array('photo_upload.php','photo_upload'); diff --git a/upload/includes/defined_links.php b/upload/includes/defined_links.php index c925edb4..a66a2b85 100644 --- a/upload/includes/defined_links.php +++ b/upload/includes/defined_links.php @@ -8,11 +8,11 @@ $cbLinks = array ( -'channels' =>array('channels.php','channels'), +'channels' =>array('channels.php','channels/'), 'compose_new' =>array('private_message.php?mode=new_msg','private_message.php?mode=new_msg'), 'contact_us' =>array('contact.php','contact'), 'create_group' =>array('create_group.php','create_group'), -'groups' =>array('groups.php','groups'), +'groups' =>array('groups.php','groups/'), 'inbox' =>array('private_message.php?mode=inbox','private_message.php?mode=inbox'), 'login' =>array('signup.php','signup.php'), 'login_success' =>array('login_success.php','login_success.php'), @@ -33,7 +33,7 @@ $cbLinks = array 'user_subscribers' =>array('user_contacts.php?mode=subscribers&user=','user_contacts.php?mode=subscribers&user='), 'user_favorites'=>array('user_videos.php?mode=favorites&user=','user_videos.php?mode=favorites&user='), 'user_videos' =>array('user_videos.php?user=','user_videos.php?user='), -'videos' =>array('videos.php','videos'), +'videos' =>array('videos.php','videos/'), );