Friday 01 July 2011 12:59:33 am
Exactly, from INI settings But, even by using ini settings, it's impossible to use eZURI::transformURI(), as it checks only server variables As a result, I've added a feature request: http://issues.ez.no/IssueView.php?Id=18423 Maybe it would be interesting to have ? Because, the only way I've found for now to make ezurl() and eZURI::transformURI() work with 'full' parameter is to add a very ugly hack: <code>
if (eZSys::isShellExecution())
{
if (!eZSys::serverVariable('HTTP_HOST', true))
{
$siteIni = eZINI::instance();
// Won't work if SiteURL contains other things than just hostname...
eZSys::setServerVariable('HTTP_HOST', $siteIni->variable('SiteSettings', 'SiteURL'));
}
if (!eZSys::serverVariable('SERVER_PORT', true))
{
eZSys::setServerVariable('SERVER_PORT', 80);
} } </code>
|