From: Geoffrey T. D. <da...@us...> - 2001-12-07 22:13:56
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv17971/lib Modified Files: main.php Log Message: Ensure the 'action' argument in $request is set. Index: main.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/main.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** main.php 2001/11/26 22:43:24 1.18 --- main.php 2001/12/07 22:13:51 1.19 *************** *** 68,74 **** $action = $request->getArg('action'); ! if (!$action) $action = 'browse'; ! global $user; // FIXME: can we make this non-global? $user = new WikiUser($request, get_auth_mode($action)); --- 68,76 ---- $action = $request->getArg('action'); ! if (!$action) { $action = 'browse'; ! $request->setArg('action', $action); ! } ! global $user; // FIXME: can we make this non-global? $user = new WikiUser($request, get_auth_mode($action)); |