1
toemon
XOOPS_URL of XE doesn't have the host name.
  • 2011/6/1 4:07

  • toemon

  • Just popping in

  • Posts: 10

  • Since: 2010/1/20


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
le="color: #000000"><?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
le="color: #000000"><?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).