From: <var...@us...> - 2015-01-30 10:05:40
|
Revision: 9502 http://sourceforge.net/p/phpwiki/code/9502 Author: vargenau Date: 2015-01-30 10:05:37 +0000 (Fri, 30 Jan 2015) Log Message: ----------- Add class error Modified Paths: -------------- trunk/lib/plugin/PageHistory.php Modified: trunk/lib/plugin/PageHistory.php =================================================================== --- trunk/lib/plugin/PageHistory.php 2015-01-29 17:40:50 UTC (rev 9501) +++ trunk/lib/plugin/PageHistory.php 2015-01-30 10:05:37 UTC (rev 9502) @@ -342,8 +342,8 @@ $args = $this->getArgs($argstr, $request); if (isset($args['limit']) && !is_limit($args['limit'])) { - return HTML::div(array('class' => "error"), - _("Illegal “limit” argument: must be an integer or two integers separated by comma")); + return HTML::p(array('class' => "error"), + _("Illegal “limit” argument: must be an integer or two integers separated by comma")); } $pagename = $args['page']; @@ -353,8 +353,8 @@ $page = $dbi->getPage($pagename); $current = $page->getCurrentRevision(); if ($current->getVersion() < 1) { - return HTML(HTML::p(fmt("Page “%s” does not exist.", WikiLink($pagename, 'unknown'))), - $this->makeForm("", $request)); + return HTML(HTML::p(array('class' => "error"), fmt("Page “%s” does not exist.", $pagename)), + $this->makeForm("", $request)); } // Hack alert: format() is a NORETURN for rss formatters. return $this->format($this->getChanges($dbi, $args), $args); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |