Remove unused parameter $save in HTML::search
- Remove unused variables in saved_search()
This commit is contained in:
parent
902ade9891
commit
9774fd8be9
|
@ -170,7 +170,6 @@ function network_init(App $a)
|
||||||
|
|
||||||
function saved_searches($search)
|
function saved_searches($search)
|
||||||
{
|
{
|
||||||
$a = get_app();
|
|
||||||
|
|
||||||
$srchurl = '/network?f='
|
$srchurl = '/network?f='
|
||||||
. ((x($_GET, 'cid')) ? '&cid=' . $_GET['cid'] : '')
|
. ((x($_GET, 'cid')) ? '&cid=' . $_GET['cid'] : '')
|
||||||
|
@ -183,8 +182,6 @@ function saved_searches($search)
|
||||||
. ((x($_GET, 'file')) ? '&file=' . $_GET['file'] : '');
|
. ((x($_GET, 'file')) ? '&file=' . $_GET['file'] : '');
|
||||||
;
|
;
|
||||||
|
|
||||||
$o = '';
|
|
||||||
|
|
||||||
$terms = DBA::select('search', ['id', 'term'], ['uid' => local_user()]);
|
$terms = DBA::select('search', ['id', 'term'], ['uid' => local_user()]);
|
||||||
$saved = [];
|
$saved = [];
|
||||||
|
|
||||||
|
@ -202,7 +199,7 @@ function saved_searches($search)
|
||||||
$o = Renderer::replaceMacros($tpl, [
|
$o = Renderer::replaceMacros($tpl, [
|
||||||
'$title' => L10n::t('Saved Searches'),
|
'$title' => L10n::t('Saved Searches'),
|
||||||
'$add' => L10n::t('add'),
|
'$add' => L10n::t('add'),
|
||||||
'$searchbox' => HTML::search($search, 'netsearch-box', $srchurl, true),
|
'$searchbox' => HTML::search($search, 'netsearch-box', $srchurl),
|
||||||
'$saved' => $saved,
|
'$saved' => $saved,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ function search_content(App $a) {
|
||||||
'name' => "search-header",
|
'name' => "search-header",
|
||||||
'$title' => L10n::t("Search"),
|
'$title' => L10n::t("Search"),
|
||||||
'$title_size' => 3,
|
'$title_size' => 3,
|
||||||
'$content' => HTML::search($search,'search-box','search',((local_user()) ? true : false), false)
|
'$content' => HTML::search($search,'search-box','search', false)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (strpos($search,'#') === 0) {
|
if (strpos($search,'#') === 0) {
|
||||||
|
|
|
@ -951,7 +951,7 @@ class HTML
|
||||||
*
|
*
|
||||||
* @return string Formatted HTML.
|
* @return string Formatted HTML.
|
||||||
*/
|
*/
|
||||||
public static function search($s, $id = 'search-box', $url = 'search', $save = false, $aside = true)
|
public static function search($s, $id = 'search-box', $url = 'search', $aside = true)
|
||||||
{
|
{
|
||||||
$mode = 'text';
|
$mode = 'text';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user