mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 10:15:12 +00:00
small fixes
This commit is contained in:
parent
e992cfeca9
commit
2353e6d23f
2 changed files with 12 additions and 3 deletions
|
@ -45,7 +45,16 @@ function dirsearch_content(&$a) {
|
||||||
// by default use a safe search
|
// by default use a safe search
|
||||||
$safe = ((x($_REQUEST,'safe')) ? intval($_REQUEST['safe']) : 1 );
|
$safe = ((x($_REQUEST,'safe')) ? intval($_REQUEST['safe']) : 1 );
|
||||||
|
|
||||||
$sync = ((x($_REQUEST,'sync')) ? datetime_convert('UTC','UTC',$_REQUEST['sync']) : '');
|
|
||||||
|
if(array_key_exists('sync',$_REQUEST)) {
|
||||||
|
if($_REQUEST['sync'])
|
||||||
|
$sync = datetime_convert('UTC','UTC',$_REQUEST['sync']);
|
||||||
|
else
|
||||||
|
$sync = datetime_convert('UTC','UTC','2010-01-01 01:01:00');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$sync = false;
|
||||||
|
|
||||||
$sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : '');
|
$sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : '');
|
||||||
|
|
||||||
// TODO - a meta search which joins all of these things to one search string
|
// TODO - a meta search which joins all of these things to one search string
|
||||||
|
|
|
@ -60,7 +60,7 @@ function sources_content(&$a) {
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
for($x = 0; $x < count($r); $x ++) {
|
for($x = 0; $x < count($r); $x ++) {
|
||||||
$r[$x]['src_patt'] = htmlspecialchars($r[$x]['src_patt']);
|
$r[$x]['src_patt'] = htmlspecialchars($r[$x]['src_patt'], ENT_COMPAT,'UTF-8');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$o = replace_macros(get_markup_template('sources_list.tpl'), array(
|
$o = replace_macros(get_markup_template('sources_list.tpl'), array(
|
||||||
|
@ -97,7 +97,7 @@ function sources_content(&$a) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$r[0]['src_patt'] = htmlspecialchars($r[0]['src_patt']);
|
$r[0]['src_patt'] = htmlspecialchars($r[0]['src_patt'], ENT_QUOTES,'UTF-8');
|
||||||
|
|
||||||
$o = replace_macros(get_markup_template('sources_edit.tpl'), array(
|
$o = replace_macros(get_markup_template('sources_edit.tpl'), array(
|
||||||
'$title' => t('Edit Source'),
|
'$title' => t('Edit Source'),
|
||||||
|
|
Loading…
Reference in a new issue