make it a bit easier
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@505 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
fee364b94e
commit
53319932bd
1 changed files with 104 additions and 100 deletions
|
@ -31,10 +31,14 @@ isset($_GET['sort']) ? define('GET_SORT', $_GET['sort']): define('GET_SORT', '')
|
|||
// POST
|
||||
if (POST_TERMS != '') {
|
||||
// Redirect to GET
|
||||
header('Location: '. createURL('search', POST_RANGE .'/'. filter(POST_TERMS, 'url')));
|
||||
header(
|
||||
'Location: '
|
||||
. createURL('search', POST_RANGE .'/'. filter(POST_TERMS, 'url'))
|
||||
);
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
// GET
|
||||
} else {
|
||||
/* Service creation: only useful services are created */
|
||||
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
|
||||
$searchhistoryservice =SemanticScuttle_Service_Factory::get('SearchHistory');
|
||||
|
@ -115,7 +119,8 @@ if (POST_TERMS != '') {
|
|||
$searchhistoryservice->addSearch($terms, $range, $bookmarks['total'], $currentUserId);
|
||||
|
||||
if ($GLOBALS['enableGoogleCustomSearch']) {
|
||||
$tplVars['tipMsg'] = T_('Unsatisfied? You can also try our ').'<a href="'.createUrl('gsearch/index').'">Google Custom Search page</a>.';
|
||||
$tplVars['tipMsg'] = T_('Unsatisfied? You can also try our ')
|
||||
. '<a href="' . createUrl('gsearch/index') . '">Google Custom Search page</a>.';
|
||||
}
|
||||
$tplVars['rsschannels'] = array();
|
||||
$tplVars['page'] = $page;
|
||||
|
@ -132,5 +137,4 @@ if (POST_TERMS != '') {
|
|||
$tplVars['nav_url'] = createURL('search', $range .'/'. $terms .'/%3$s');
|
||||
|
||||
$templateservice->loadTemplate('bookmarks.tpl', $tplVars);
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue