remove redundancy from 404 settings

This commit is contained in:
following
2013-07-31 17:31:19 +02:00
parent f489ce547a
commit dbf039ec11
2 changed files with 3 additions and 1 deletions

View File

@ -52,6 +52,8 @@
$opt404[$option] = $opt['page']['404'][$_SERVER['SERVER_NAME']][$option];
else
$opt404[$option] = $opt['page']['404']['www.opencaching.de'][$option];
if ($opt404[$option]['urlname'] == '')
$opt404[$option]['urlname'] = parse_url($opt404[$option]['url'], PHP_URL_HOST);
}
// get feeds from $feeds array

View File

@ -258,7 +258,7 @@
'newcaches' => array(
'show' => true,
'url' => 'http://www.opencaching.de',
'urlname' => 'www.opencaching.de',
'urlname' => '', // optional: show other name than the url-domain
),
);