From: <dj...@us...> - 2012-01-22 16:53:56
|
Revision: 8778 http://xoops.svn.sourceforge.net/xoops/?rev=8778&view=rev Author: djculex Date: 2012-01-22 16:53:49 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Changes average message per day to calculate from date of last update to date of first message Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/class/adminclass.php Modified: XoopsModules/smallworld/trunk/smallworld/class/adminclass.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-22 16:17:48 UTC (rev 8777) +++ XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-22 16:53:49 UTC (rev 8778) @@ -83,9 +83,10 @@ // Count total days represented in db function CountDays () { global $xoopsDB,$xoopsModule; - $date = $xoopsModule->getVar('last_update'); + //$date = $xoopsModule->getVar('last_update'); + $date = $this->oldestMsg(); $now = time(); - $diff = ($now - $date) / (60); + $diff = ($now - $date) / (60*60*24); return $diff; } // find user with most posted messages This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |