|
From: <dj...@us...> - 2012-03-07 17:09:29
|
Revision: 9107
http://xoops.svn.sourceforge.net/xoops/?rev=9107&view=rev
Author: djculex
Date: 2012-03-07 17:09:19 +0000 (Wed, 07 Mar 2012)
Log Message:
-----------
Modified Paths:
--------------
XoopsModules/smallworld/trunk/smallworld/include/functions.php
XoopsModules/smallworld/trunk/smallworld/preloads/core.php
Modified: XoopsModules/smallworld/trunk/smallworld/include/functions.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-03-07 16:36:39 UTC (rev 9106)
+++ XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-03-07 17:09:19 UTC (rev 9107)
@@ -145,13 +145,13 @@
$yearDiff = date("Y") - $year;
$monthDiff = date("m") - $month;
$dayDiff = date("d") - $day;
- if ($MonthDiff == 0){
- if($DayDiff < 0) {
- $YearDiff--;
+ if ($monthDiff == 0){
+ if($dayDiff < 0) {
+ $yearDiff--;
}
}
- if ($MonthDiff < 0){
- $YearDiff--;
+ if ($monthDiff < 0){
+ $yearDiff--;
}
return $yearDiff;
}
Modified: XoopsModules/smallworld/trunk/smallworld/preloads/core.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/preloads/core.php 2012-03-07 16:36:39 UTC (rev 9106)
+++ XoopsModules/smallworld/trunk/smallworld/preloads/core.php 2012-03-07 17:09:19 UTC (rev 9107)
@@ -35,8 +35,6 @@
if ($module) {
$moduleConfig =& $config_handler->getConfigsByCat(0, $module->getVar('mid'));
}
- //Check Language
- $lang = $xoopsConfig['language'];
// check geolocation style
if(isset($moduleConfig['geolocate'])) {
$geolocate = $moduleConfig['geolocate'];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|