From: <var...@us...> - 2009-03-05 08:51:17
|
Revision: 6631 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6631&view=rev Author: vargenau Date: 2009-03-05 08:51:02 +0000 (Thu, 05 Mar 2009) Log Message: ----------- Error banner when bad action Modified Paths: -------------- trunk/lib/plugin/WikiAdminUtils.php Modified: trunk/lib/plugin/WikiAdminUtils.php =================================================================== --- trunk/lib/plugin/WikiAdminUtils.php 2009-03-04 18:19:01 UTC (rev 6630) +++ trunk/lib/plugin/WikiAdminUtils.php 2009-03-05 08:51:02 UTC (rev 6631) @@ -2,6 +2,7 @@ rcs_id('$Id$'); /** Copyright 2003,2004,2006 $ThePhpWikiProgrammingTeam + Copyright 2009 Marc-Etienne Vargenau, Alcatel-Lucent This file is part of PhpWiki. @@ -60,8 +61,9 @@ if (!$action) $this->error("No action specified"); - if (!($default_label = $this->_getLabel($action))) - $this->error("Bad action"); + if (!($default_label = $this->_getLabel($action))) { + return HTML::div(array('class' => "error"), fmt("Bad action requested: %s", $action)); + } if ($request->getArg('action') != 'browse') return $this->disabled("(action != 'browse')"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |