diff options
author | Eric Helgeson <helfire@Erics-MBP.local> | 2009-03-09 20:01:35 -0500 |
---|---|---|
committer | Eric Helgeson <helfire@Erics-MBP.local> | 2009-03-09 20:01:35 -0500 |
commit | c6cd87c106b763ed5610dae64e5a02ba86609ece (patch) | |
tree | 2f93e5b2f7183fee0c6fcebce9de93033f930ae2 /lib/searchaction.php | |
parent | 945bbf00dc9ee106359e9387956c72c1290d12fc (diff) |
Changed all $config[][] calls to common_config()
Diffstat (limited to 'lib/searchaction.php')
-rw-r--r-- | lib/searchaction.php | 4 |
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); |