Fixed undefined REQUEST_URI/HTTP_HOST in ENANO_CLI mode in template var init
authorDan
Mon, 28 Jul 2008 13:08:12 -0600
changeset 669 9243d01c0716
parent 668 0631e4de5de6
child 670 5e67afb31138
Fixed undefined REQUEST_URI/HTTP_HOST in ENANO_CLI mode in template var init
includes/template.php
--- a/includes/template.php	Mon Jul 28 13:07:41 2008 -0600
+++ b/includes/template.php	Mon Jul 28 13:08:12 2008 -0600
@@ -1188,7 +1188,7 @@
       'ADMIN_SID_RAW'=> ( is_string($session->sid_super) ? $session->sid_super : '' ),
       'COPYRIGHT'=>RenderMan::parse_internal_links(getConfig('copyright_notice')),
       'TOOLBAR_EXTRAS'=>$this->toolbar_menu,
-      'REQUEST_URI'=>$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],
+      'REQUEST_URI'=>( defined('ENANO_CLI') ? '' : $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ),
       'STYLE_LINK'=>makeUrlNS('Special', 'CSS'.$p, null, true), //contentPath.$paths->nslist['Special'].'CSS' . $p,
       'LOGIN_LINK'=>$login_link,
       'LOGOUT_LINK'=>$logout_link,