From f16de21ca59e19eb2842a7f15ba59df98ca95ddd Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 26 Mar 2010 21:50:54 +0000 Subject: [PATCH] Use correct var in MS dashboard_quota(). props ocean90, see #12710. also fixes sprintf string. git-svn-id: http://svn.automattic.com/wordpress/trunk@13835 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ms.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 5cb9bb8371..a864892100 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -448,9 +448,10 @@ function dashboard_quota() { $percentused = '100'; else $percentused = ( $used / $quota ) * 100; - $percentused = number_format($percentused); - $used = round($used,2); - $used_color = ($used < 70) ? (($used >= 40) ? 'waiting' : 'approved') : 'spam'; + $used_color = ( $percentused < 70 ) ? ( ( $percentused >= 40 ) ? 'waiting' : 'approved') : 'spam'; + $used = round( $used, 2 ); + $percentused = number_format( $percentused ); + ?>

@@ -458,7 +459,7 @@ function dashboard_quota() { %sMB' ), $quota ); ?> - %1sMB (%2s%%)' ), $used, $percentused ); ?> + %1sMB (%2$s%%)' ), $used, $percentused ); ?>