[xoops-cvslog 3608] CVS update: xoops2jp/html/kernel

Back to archive index

Minahito minah****@users*****
2006年 7月 16日 (日) 15:41:33 JST


Index: xoops2jp/html/kernel/module.php
diff -u xoops2jp/html/kernel/module.php:1.2.8.11 xoops2jp/html/kernel/module.php:1.2.8.12
--- xoops2jp/html/kernel/module.php:1.2.8.11	Thu May 18 23:04:04 2006
+++ xoops2jp/html/kernel/module.php	Sun Jul 16 15:41:33 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: module.php,v 1.2.8.11 2006/05/18 14:04:04 nobunobu Exp $
+// $Id: module.php,v 1.2.8.12 2006/07/16 06:41:33 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -86,7 +86,7 @@
             $this->loadInfo($dirname, $verbose);
         }
         $this->setVar('name', $this->modinfo['name'], true);
-        $this->setVar('version', round(100 * $this->modinfo['version']));
+        $this->setVar('version', round(100 * floatval($this->modinfo['version'])));
         $this->setVar('dirname', $this->modinfo['dirname'], true);
         $hasmain = (isset($this->modinfo['hasMain']) && $this->modinfo['hasMain'] == 1) ? 1 : 0;
         $hasadmin = (isset($this->modinfo['hasAdmin']) && $this->modinfo['hasAdmin'] == 1) ? 1 : 0;
@@ -210,7 +210,12 @@
             }
             return;
         }
+		
         $this->modinfo =& $modversion;
+		
+		if (!isset($this->modinfo['version'])) {
+			$this->modinfo['version'] = floatval($this->modinfo['version']);
+		}
     }
 
     /**


xoops-cvslog メーリングリストの案内
Back to archive index