[pLog-svn] r5653 - plog/branches/lifetype-1.2/class/view/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat Jul 14 06:58:47 EDT 2007


Author: oscar
Date: 2007-07-14 06:58:47 -0400 (Sat, 14 Jul 2007)
New Revision: 5653

Modified:
   plog/branches/lifetype-1.2/class/view/admin/admindashboardview.class.php
Log:
Implemented bugfix http://bugs.lifetype.net/view.php?id=1355 -- now the dashboard will try to guess the user locale by taking it from the first blog, rather than using the site's default one.

Modified: plog/branches/lifetype-1.2/class/view/admin/admindashboardview.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/view/admin/admindashboardview.class.php	2007-07-14 10:10:28 UTC (rev 5652)
+++ plog/branches/lifetype-1.2/class/view/admin/admindashboardview.class.php	2007-07-14 10:58:47 UTC (rev 5653)
@@ -119,7 +119,11 @@
         function render()
         {
 			// set the view character set based on the default locale
-            $locale =& Locales::getLocale( $this->_config->getValue( "default_locale" ));			
+			if( empty( $this->_userBlogs ))
+            	$locale =& Locales::getLocale( $this->_config->getValue( "default_locale" ));			
+			else
+				$locale = $this->_userBlogs[0]->getLocale();
+				
 			$this->setCharset( $locale->getCharset());		
 		
 			parent::render();



More information about the pLog-svn mailing list