cvs: docweb /include init.inc.php

From: Date: Fri, 21 Jan 2005 16:58:19 +0000
Subject: cvs: docweb /include init.inc.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-510@lists.php.net to get a copy of this message
sean Fri Jan 21 11:58:19 2005 EDT Modified files: /docweb/include init.inc.php Log: more URL hacks http://cvs.php.net/diff.php/docweb/include/init.inc.php?r1=1.7&r2=1.8&ty=u Index: docweb/include/init.inc.php diff -u docweb/include/init.inc.php:1.7 docweb/include/init.inc.php:1.8 --- docweb/include/init.inc.php:1.7 Tue Jan 18 10:10:24 2005 +++ docweb/include/init.inc.php Fri Jan 21 11:58:19 2005 @@ -18,7 +18,7 @@ | Gabor Hojtsy <goba@php.net> | | Sean Coates <sean@php.net> | +----------------------------------------------------------------------+ -$Id: init.inc.php,v 1.7 2005/01/18 15:10:24 sean Exp $ +$Id: init.inc.php,v 1.8 2005/01/21 16:58:19 sean Exp $ */ error_reporting(E_ALL); @@ -59,8 +59,9 @@ $baseURL = dirname($_SERVER['REQUEST_URI']); } - // this very dirty fix makes /rfc work + // this very dirty fix makes /rfc and /dochowto work (@@@ re-work this) $baseURL = str_replace('/rfc', '', $baseURL); + $baseURL = str_replace('/dochowto', '', $baseURL); // actually define the constant (trim off any trailing slashes): define('BASE_URL', rtrim($baseURL, '/'));

« previous php.doc.web (#510) next »