[Piwik-svn] r350 - trunk/modules
svnmaster at piwik.org
svnmaster at piwik.org
Mon Mar 10 16:17:52 CET 2008
Author: matt
Date: 2008-03-10 16:17:51 +0100 (Mon, 10 Mar 2008)
New Revision: 350
Modified:
trunk/modules/Common.php
Log:
- fix Non-static method Piwik_Common::getCountry() should not be called statically, assuming $this from incompatible context
Modified: trunk/modules/Common.php
===================================================================
--- trunk/modules/Common.php 2008-03-10 01:13:45 UTC (rev 349)
+++ trunk/modules/Common.php 2008-03-10 15:17:51 UTC (rev 350)
@@ -384,7 +384,7 @@
*
* @return string Continent (3 letters code : afr, asi, eur, amn, ams, oce)
*/
- function getContinent($country)
+ static function getContinent($country)
{
require_once PIWIK_DATAFILES_INCLUDE_PATH . "/Countries.php";
@@ -407,7 +407,7 @@
*
* @return string
*/
- function getCountry( $lang )
+ static function getCountry( $lang )
{
require_once PIWIK_DATAFILES_INCLUDE_PATH . "/Countries.php";
More information about the Piwik-svn
mailing list