Ticket #6092

モジュールバージョンの丸めが甘い
오픈 날짜: 2005-06-01 13:25 마지막 업데이트: 2005-06-02 14:01

Reporter:
소유자:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

モジュール番号が特定の数字(例えば0.29)だと、下2桁目
が、一つ少ない数字になってしまう。

修正案:

kernel/module.php 89行目
旧)
$this->setVar('version', 100 *
$this->modinfo['version']);
新)
$this->setVar('version', round(100 *
$this->modinfo['version']));

本当は ceil() にすべきポイントの気はしますが、無難に
round()で。

Ticket History (1/1 Histories)

2005-06-02 14:01 Updated by: onokazu
  • Ticket Close date is changed to 2005-06-02 14:01
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
댓글 올리기
Logged In: YES
user_id=754

有難うございます。CVSの方へと反映いたしました。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login