aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/sitepages/views')
-rw-r--r--mod/sitepages/views/default/sitepages/keywords.php30
-rw-r--r--mod/sitepages/views/default/sitepages/keywords/user_list.php4
2 files changed, 2 insertions, 32 deletions
diff --git a/mod/sitepages/views/default/sitepages/keywords.php b/mod/sitepages/views/default/sitepages/keywords.php
deleted file mode 100644
index d7fb8ad97..000000000
--- a/mod/sitepages/views/default/sitepages/keywords.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/**
- * Lists available keywords
- *
- * @package SitePages
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2010
- * @link http://elgg.org/
- */
-
-$keywords = $vars['config']->sitepages_keywords;
-$title = elgg_echo('sitepages:keywords_title');
-$instructions = elgg_echo('sitepages:keywords_instructions');
-$more_info = elgg_echo('sitepages:keywords_instructions_more');
-
-$keywords_html = '';
-foreach ($keywords as $keyword => $info) {
- $desc = htmlentities($info['description']);
- $keywords_html .= "<li><acronym title=\"$desc\">[[$keyword]]</acronym></li>";
-}
-
-echo "
-<h3>$title</h3>
-<p>$instructions</p>
-$more_info
-<ul>
- $keywords_html
-</ul>
-"; \ No newline at end of file
diff --git a/mod/sitepages/views/default/sitepages/keywords/user_list.php b/mod/sitepages/views/default/sitepages/keywords/user_list.php
index 2f2f09c49..0961cb682 100644
--- a/mod/sitepages/views/default/sitepages/keywords/user_list.php
+++ b/mod/sitepages/views/default/sitepages/keywords/user_list.php
@@ -10,7 +10,7 @@
*/
$only_with_avatars = (isset($vars['only_with_avatars'])) ? $vars['only_with_avatars'] : TRUE;
-$list_type = (isset($vars['list_type'])) ? $vars['list_type'] : 'newest';
+$list_type = (isset($vars['list_type'])) ? $vars['list_type'] : 'new';
$limit = (isset($vars['limit'])) ? $vars['limit'] : 10;
$options = array(
@@ -23,7 +23,7 @@ if ($only_with_avatars == TRUE) {
}
switch ($list_type) {
- case 'newest':
+ case 'new':
$options['order_by'] = 'e.time_created DESC';
break;