Use get_config

This commit is contained in:
Thomas Willingham 2013-09-20 03:24:38 +01:00
parent 49cfca4b4c
commit 30f85a19b1

View File

@ -70,7 +70,7 @@ function directory_content(&$a) {
if($url) { if($url) {
// We might want to make the tagadelic count (&kw=) configurable or turn it off completely. // We might want to make the tagadelic count (&kw=) configurable or turn it off completely.
$numtags = $a->config['system']['directorytags']; $numtags = get_config('system','directorytags');
$kw = ((intval($numtags)) ? $numtags : 24); $kw = ((intval($numtags)) ? $numtags : 24);
$query = $url . '?f=&kw=' . $kw; $query = $url . '?f=&kw=' . $kw;