aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-22 19:32:33 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-22 19:32:33 +0000
commit1827bae9adc9aaad0c08e47f7ca8aae81a814065 (patch)
treeba37df66cbdbaa07bc043be259ac79b4376eb45d
parentd3bf7525d2781635e631be87a7e40fec9739ee92 (diff)
downloadelgg-1827bae9adc9aaad0c08e47f7ca8aae81a814065.tar.gz
elgg-1827bae9adc9aaad0c08e47f7ca8aae81a814065.tar.bz2
moved all most recent pages to pages/lists/
-rw-r--r--pages/lists/friendmostrecent.php (renamed from friendmostrecent.php)4
-rw-r--r--pages/lists/mostrecentimages.php (renamed from mostrecentimages.php)2
-rw-r--r--pages/lists/yourmostrecent.php (renamed from yourmostrecent.php)4
-rw-r--r--start.php7
4 files changed, 9 insertions, 8 deletions
diff --git a/friendmostrecent.php b/pages/lists/friendmostrecent.php
index 10d99251a..5f71d5679 100644
--- a/friendmostrecent.php
+++ b/pages/lists/friendmostrecent.php
@@ -1,10 +1,10 @@
<?php
/**
- * Tidypics Friends Albums Listing
+ * List of someone else's most recent photos (we should be able to combine with yourmostrecent.php)
*
*/
- include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ include_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php";
if (is_null(page_owner_entity()->name) || page_owner_entity()->name == '') {
$friendname = get_input('username');
diff --git a/mostrecentimages.php b/pages/lists/mostrecentimages.php
index 964216fe9..5332d8e9e 100644
--- a/mostrecentimages.php
+++ b/pages/lists/mostrecentimages.php
@@ -6,7 +6,7 @@
*/
// Load Elgg engine
- include_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php";
+ include_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php";
// how many do we display
$max = 12;
diff --git a/yourmostrecent.php b/pages/lists/yourmostrecent.php
index 69b4b93e9..eb124c84d 100644
--- a/yourmostrecent.php
+++ b/pages/lists/yourmostrecent.php
@@ -1,10 +1,10 @@
<?php
/**
- * Tidypics Friends Albums Listing
+ * List of user's most recently uploaded photos
*
*/
- include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ include_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php";
global $CONFIG;
$viewer = get_loggedin_user();
diff --git a/start.php b/start.php
index 07dc9392f..7592f00b3 100644
--- a/start.php
+++ b/start.php
@@ -279,6 +279,7 @@
include($CONFIG->pluginspath . "tidypics/actions/rate.php");
break;
+
case "mostviewed":
if (isset($page[1])) set_input('guid',$page[1]);
include($CONFIG->pluginspath . "tidypics/mostviewedimages.php");
@@ -286,7 +287,7 @@
case "mostrecent":
if (isset($page[1])) set_input('guid',$page[1]);
- include($CONFIG->pluginspath . "tidypics/mostrecentimages.php");
+ include($CONFIG->pluginspath . "tidypics/pages/lists/mostrecentimages.php");
break;
case "yourmostviewed":
@@ -296,7 +297,7 @@
case "yourmostrecent":
if (isset($page[1])) set_input('guid',$page[1]);
- include($CONFIG->pluginspath . "tidypics/yourmostrecent.php");
+ include($CONFIG->pluginspath . "tidypics/pages/lists/yourmostrecent.php");
break;
case "friendmostviewed":
@@ -306,7 +307,7 @@
case "friendmostrecent":
if (isset($page[1])) set_input('guid',$page[1]);
- include($CONFIG->pluginspath . "tidypics/friendmostrecent.php");
+ include($CONFIG->pluginspath . "tidypics/pages/lists/friendmostrecent.php");
break;
case "recentlyviewed":