mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
make both content and people search POSTable
This commit is contained in:
parent
1cffecd1be
commit
57eb0576b0
2 changed files with 22 additions and 2 deletions
|
@ -1,13 +1,22 @@
|
|||
<?php
|
||||
|
||||
|
||||
function search_post(&$a) {
|
||||
if(x($_POST,'search'))
|
||||
$a->data['search'] = $_POST['search'];
|
||||
}
|
||||
|
||||
|
||||
function search_content(&$a) {
|
||||
|
||||
$o = '<div id="live-search"></div>' . "\r\n";
|
||||
|
||||
$o .= '<h3>' . t('Search') . '</h3>';
|
||||
|
||||
$search = ((x($_GET,'search')) ? rawurldecode($_GET['search']) : '');
|
||||
if(x($a->data,'search'))
|
||||
$search = notags(trim($a->data['search']));
|
||||
else
|
||||
$search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : '');
|
||||
|
||||
$o .= search($search);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue