toemon toemon
  • Just popping in
  • Just popping in
  • Joined: 2010/1/20 9:32
  • From Japan
  • Group: Registered Users
  • Posts: 10
  • Posted on: 2011/6/1 0:07
XOOPS_URL of XE doesn't have the host name. #1
I am testing an old module on Xoops Engine Alpha 2.

XOOPS_URL doesn't have the hostname.
XOOPS_THEME_URL and XOOPS_UPLOAD_URL are also the same.
They had the hostname at old XOOPS.
Isn't it a bug?

They are defined in the following code.
lib/Engine/Legacy/Legacy.php
define("XOOPS_URL"XOOPS::url('www'));         define("XOOPS_THEME_URL"XOOPS::url('www') . '/themes');         define("XOOPS_UPLOAD_URL"XOOPS::url('www') . '/uploads');

lib/Engine/Legacy/Host.php
define("XOOPS_URL"$this->url('www'));         define("XOOPS_THEME_URL"$this->url('www') . '/themes');         define("XOOPS_UPLOAD_URL"$this->url('www') . '/uploads');

I think that I should get it with url('www',true).
How to effectively post a question in the Xoops forums? - Read here...
Design by: XOOPS UI/UX Team