summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/site_status.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-11-15 19:44:47 -0800
committerAndy Staudacher <andy.st@gmail.com>2009-11-15 19:44:47 -0800
commit0733dc37fda27a5ba35f9020edf3c66aa41a95a0 (patch)
tree6877946232f1b01b1c8709054c689f6658cef34f /modules/gallery/helpers/site_status.php
parent218493c50be9362d4abed6900a816308fee5d978 (diff)
parent9379308f91a476f790fb8d444536719535c584e4 (diff)
Merge commit 'upstream/master'
Conflicts: modules/gallery/tests/xss_data.txt
Diffstat (limited to 'modules/gallery/helpers/site_status.php')
-rw-r--r--modules/gallery/helpers/site_status.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/gallery/helpers/site_status.php b/modules/gallery/helpers/site_status.php
index 6d47e565..2b090776 100644
--- a/modules/gallery/helpers/site_status.php
+++ b/modules/gallery/helpers/site_status.php
@@ -95,7 +95,7 @@ class site_status_Core {
* @return html text
*/
static function get() {
- if (!user::active()->admin) {
+ if (!identity::active_user()->admin) {
return;
}
$buf = array();
@@ -105,7 +105,7 @@ class site_status_Core {
}
if ($buf) {
- return "<ul id=\"gSiteStatus\">" . implode("", $buf) . "</ul>";
+ return "<ul id=\"g-site-status\">" . implode("", $buf) . "</ul>";
}
}
@@ -117,16 +117,16 @@ class site_status_Core {
static function severity_class($severity) {
switch($severity) {
case self::SUCCESS:
- return "gSuccess";
+ return "g-success";
case self::INFO:
- return "gInfo";
+ return "g-info";
case self::WARNING:
- return "gWarning";
+ return "g-warning";
case self::ERROR:
- return "gError";
+ return "g-error";
}
}
}