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

アーカイブの一覧に戻る

NobuNobu nobun****@users*****
2007年 1月 14日 (日) 01:25:20 JST


Index: xoops2jp/html/kernel/module.php
diff -u xoops2jp/html/kernel/module.php:1.2.8.14.2.3 xoops2jp/html/kernel/module.php:1.2.8.14.2.4
--- xoops2jp/html/kernel/module.php:1.2.8.14.2.3	Wed Jan 10 17:46:05 2007
+++ xoops2jp/html/kernel/module.php	Sun Jan 14 01:25:19 2007
@@ -1,5 +1,5 @@
 <?php
-// $Id: module.php,v 1.2.8.14.2.3 2007/01/10 08:46:05 nobunobu Exp $
+// $Id: module.php,v 1.2.8.14.2.4 2007/01/13 16:25:19 nobunobu 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 * floatval($this->modinfo['version'])));
+        $this->setVar('version', Legacy_Utils::convertVersionFromModinfoToInt($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;
@@ -213,6 +213,8 @@
 		
 		if (isset($this->modinfo['version'])) {
 			$this->modinfo['version'] = floatval($this->modinfo['version']);
+		} else {
+		    $this->modinfo['version'] = 0;
 		}
     }
 


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る