From bfcd3e087980e48b5b908fd30cf2e9b1aa3726e4 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Tue, 25 May 2010 07:39:47 -0400 Subject: Updated the RSS for language file and added files missing from previous commits --- manifest.xml | 4 ++-- start.php | 9 --------- views/opensearch_rss/page_shells/default.php | 8 +++----- views/opensearch_rss/search/listing.php | 1 - views/xml/opensearch/description.php | 6 +++--- 5 files changed, 8 insertions(+), 20 deletions(-) diff --git a/manifest.xml b/manifest.xml index 0038dc168..a8733595b 100644 --- a/manifest.xml +++ b/manifest.xml @@ -3,8 +3,8 @@ - - + + diff --git a/start.php b/start.php index 015fd3b1e..7adc0f733 100644 --- a/start.php +++ b/start.php @@ -27,15 +27,6 @@ function opensearch_init() { function opensearch_handler($page) { global $CONFIG; - // file path to the page scripts - $base_path = $CONFIG->pluginspath . 'opensearch'; - - if (!isset($page[0])) { - require "$base_path/search.php"; - return TRUE; - } - - // select page based on first URL element after /pg/hello/ switch ($page[0]) { case 'osd.xml': elgg_set_viewtype('xml'); diff --git a/views/opensearch_rss/page_shells/default.php b/views/opensearch_rss/page_shells/default.php index 52aa8854c..e9510e9da 100644 --- a/views/opensearch_rss/page_shells/default.php +++ b/views/opensearch_rss/page_shells/default.php @@ -12,9 +12,9 @@ echo "\n"; // Set title $search_terms = get_input('q'); $title = $vars['config']->sitename; -$title .= " Search: $search_terms"; +$title .= ' ' . sprintf(elgg_echo('opensearch:title'), $search_terms); -$description = "Search results for \"$search_terms\""; +$description = sprintf(elgg_echo('opensearch:description'), $search_terms); // Remove viewtype from URL $search_url = str_replace('&view=opensearch_rss','', full_url()); @@ -29,10 +29,8 @@ $os_url = "{$vars['url']}pg/opensearch/osd.xml"; - 1 - 10