summaryrefslogtreecommitdiff
path: root/lib/searchaction.php
diff options
context:
space:
mode:
authorEric Helgeson <helfire@Erics-MBP.local>2009-03-09 20:01:35 -0500
committerEric Helgeson <helfire@Erics-MBP.local>2009-03-09 20:01:35 -0500
commitc6cd87c106b763ed5610dae64e5a02ba86609ece (patch)
tree2f93e5b2f7183fee0c6fcebce9de93033f930ae2 /lib/searchaction.php
parent945bbf00dc9ee106359e9387956c72c1290d12fc (diff)
Changed all $config[][] calls to common_config()
Diffstat (limited to 'lib/searchaction.php')
-rw-r--r--lib/searchaction.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/searchaction.php b/lib/searchaction.php
index df6876445..c762db16f 100644
--- a/lib/searchaction.php
+++ b/lib/searchaction.php
@@ -110,8 +110,6 @@ class SearchAction extends Action
function showForm($error=null)
{
- global $config;
-
$q = $this->trimmed('q');
$page = $this->trimmed('page', 1);
$this->elementStart('form', array('method' => 'get',
@@ -122,7 +120,7 @@ class SearchAction extends Action
$this->element('legend', null, _('Search site'));
$this->elementStart('ul', 'form_data');
$this->elementStart('li');
- if (!isset($config['site']['fancy']) || !$config['site']['fancy']) {
+ if (!common_config('site', 'fancy')) {
$this->hidden('action', $this->trimmed('action'));
}
$this->input('q', 'Keyword(s)', $q);