aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php5
-rw-r--r--mod/zotfeed.php4
2 files changed, 5 insertions, 4 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 67074d8cd..fa328462c 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -365,6 +365,8 @@ function directory_content(&$a) {
else {
$maxheight = 94;
+ $dirtitle = (($globaldir) ? t('Global Directory') : t('Local Directory'));
+
$o .= "<script> var page_query = '" . $_GET['q'] . "'; var extra_args = '" . extra_query_args() . "' ; divmore_height = " . intval($maxheight) . "; </script>";
$o .= replace_macros($tpl, array(
'$search' => $search,
@@ -372,10 +374,9 @@ function directory_content(&$a) {
'$finddsc' => t('Finding:'),
'$safetxt' => htmlspecialchars($search,ENT_QUOTES,'UTF-8'),
'$entries' => $entries,
- '$dirlbl' => $suggest ? t('Channel Suggestions') : t('Directory'),
+ '$dirlbl' => $suggest ? t('Channel Suggestions') : $dirtitle,
'$submit' => t('Find'),
'$next' => alt_pager($a,$j['records'], t('next page'), t('previous page'))
-
));
diff --git a/mod/zotfeed.php b/mod/zotfeed.php
index b2f2e0465..fffb0e4ab 100644
--- a/mod/zotfeed.php
+++ b/mod/zotfeed.php
@@ -9,7 +9,7 @@ function zotfeed_init(&$a) {
$mindate = (($_REQUEST['mindate']) ? datetime_convert('UTC','UTC',$_REQUEST['mindate']) : '');
if(! $mindate)
- $mindate = datetime_convert('UTC','UTC', 'now - 4 days');
+ $mindate = datetime_convert('UTC','UTC', 'now - 14 days');
if(get_config('system','block_public') && (! get_account_id()) && (! remote_channel())) {
$result['message'] = 'Public access denied';
@@ -29,7 +29,7 @@ function zotfeed_init(&$a) {
$x = get_sys_channel();
if($x)
$r = array($x);
- $mindate = datetime_convert('UTC','UTC', 'now - 2 days');
+ $mindate = datetime_convert('UTC','UTC', 'now - 14 days');
}
if(! $r) {
$result['message'] = 'Channel not found.';