Browse Source

admin: fix switcher class on active

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@250 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
95ab8bcf90
  1. 2
      admin/xcache.php

2
admin/xcache.php

@ -79,7 +79,7 @@ function switcher($name, $options)
$n = isset($_GET[$name]) ? $_GET[$name] : null;
$html = array();
foreach ($options as $k => $v) {
$html[] = sprintf('<a href="?%s=%s"%s>%s</a>', $name, $k, $k == $n ? 'class="active"' : '', $v);
$html[] = sprintf('<a href="?%s=%s"%s>%s</a>', $name, $k, $k == $n ? ' class="active"' : '', $v);
}
return implode(' ', $html);
}

Loading…
Cancel
Save