From: Miguel Jacq Date: Fri, 16 Oct 2009 04:36:16 +0000 (+1100) Subject: change the status style of errored but enabled or not yet installed sites, to differe... X-Git-Url: http://git.mig5.net/?p=modules%2Fhosting%2F.git;a=commitdiff_plain;h=adf1163141f29b9cf4a0d9d8af983a5c8e35f08d change the status style of errored but enabled or not yet installed sites, to differentiate between the orange disabled state (which we dont want to appear red) --- diff --git a/site/hosting_site.module b/site/hosting_site.module index 3c41526..d5130ec 100644 --- a/site/hosting_site.module +++ b/site/hosting_site.module @@ -819,8 +819,8 @@ function _hosting_site_list_class($node) { HOSTING_SITE_DELETED => "hosting-error", HOSTING_SITE_DISABLED => "hosting-warning", ); - if (($node->site_status == HOSTING_SITE_ENABLED) && (!$node->verified)) { - return 'hosting-warning'; + if (($node->site_status == HOSTING_SITE_ENABLED || $node->site_status == HOSTING_SITE_DISABLED) && (!$node->verified)) { + return 'hosting-error'; } return $classes[$node->site_status];