forked from leftypol/leftypol
$board can be NULL here, prevent indexing it
Simplest 7.4 fix ever? Possibly.
This commit is contained in:
parent
15a099deb3
commit
c388081617
1 changed files with 10 additions and 8 deletions
|
@ -212,15 +212,17 @@ function loadConfig() {
|
||||||
if (!isset($config['image_deleted']))
|
if (!isset($config['image_deleted']))
|
||||||
$config['image_deleted'] = $config['dir']['static'] . 'deleted.png';
|
$config['image_deleted'] = $config['dir']['static'] . 'deleted.png';
|
||||||
|
|
||||||
if (!isset($config['uri_thumb']))
|
if (isset($board)) {
|
||||||
$config['uri_thumb'] = $config['root'] . $board['dir'] . $config['dir']['thumb'];
|
if (!isset($config['uri_thumb']))
|
||||||
elseif (isset($board['dir']))
|
$config['uri_thumb'] = $config['root'] . $board['dir'] . $config['dir']['thumb'];
|
||||||
$config['uri_thumb'] = sprintf($config['uri_thumb'], $board['dir']);
|
elseif (isset($board['dir']))
|
||||||
|
$config['uri_thumb'] = sprintf($config['uri_thumb'], $board['dir']);
|
||||||
|
|
||||||
if (!isset($config['uri_img']))
|
if (!isset($config['uri_img']))
|
||||||
$config['uri_img'] = $config['root'] . $board['dir'] . $config['dir']['img'];
|
$config['uri_img'] = $config['root'] . $board['dir'] . $config['dir']['img'];
|
||||||
elseif (isset($board['dir']))
|
elseif (isset($board['dir']))
|
||||||
$config['uri_img'] = sprintf($config['uri_img'], $board['dir']);
|
$config['uri_img'] = sprintf($config['uri_img'], $board['dir']);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($config['uri_stylesheets']))
|
if (!isset($config['uri_stylesheets']))
|
||||||
$config['uri_stylesheets'] = $config['root'] . 'stylesheets/';
|
$config['uri_stylesheets'] = $config['root'] . 'stylesheets/';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue