From: <var...@us...> - 2011-01-21 13:28:54
|
Revision: 7853 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7853&view=rev Author: vargenau Date: 2011-01-21 13:28:47 +0000 (Fri, 21 Jan 2011) Log Message: ----------- Use CSS class "error" instead of "errors" Modified Paths: -------------- trunk/lib/WikiPlugin.php trunk/lib/plugin/PageDump.php trunk/lib/plugin/UserPreferences.php trunk/lib/plugin/WatchPage.php Modified: trunk/lib/WikiPlugin.php =================================================================== --- trunk/lib/WikiPlugin.php 2011-01-21 13:21:14 UTC (rev 7852) +++ trunk/lib/WikiPlugin.php 2011-01-21 13:28:47 UTC (rev 7853) @@ -353,7 +353,7 @@ } function error ($message) { - return HTML::span(array('class' => 'errors'), + return HTML::span(array('class' => 'error'), HTML::strong(fmt("Plugin %s failed.", $this->getName())), ' ', $message); } Modified: trunk/lib/plugin/PageDump.php =================================================================== --- trunk/lib/plugin/PageDump.php 2011-01-21 13:21:14 UTC (rev 7852) +++ trunk/lib/plugin/PageDump.php 2011-01-21 13:28:47 UTC (rev 7853) @@ -219,7 +219,7 @@ return HTML($h2, HTML::em($desc), HTML::pre($mailified), $altpreviewbuttons, - HTML::div(array('class' => 'errors'), + HTML::div(array('class' => 'error'), HTML::strong(_("Warning:")), " ", $warning), $dl, $Sep, $dlall, $Sep, $dlsvn Modified: trunk/lib/plugin/UserPreferences.php =================================================================== --- trunk/lib/plugin/UserPreferences.php 2011-01-21 13:21:14 UTC (rev 7852) +++ trunk/lib/plugin/UserPreferences.php 2011-01-21 13:28:47 UTC (rev 7853) @@ -70,7 +70,7 @@ return ''; if (defined('FUSIONFORGE') and FUSIONFORGE) { if (!($user->isAuthenticated())) { - return HTML::div(array('class' => 'errors'), + return HTML::p(array('class' => 'error'), _("Error: You are not logged in, cannot display UserPreferences.")); } } @@ -81,7 +81,7 @@ or (isa($user,'_ForbiddenUser'))) { $no_args = $this->getDefaultArguments(); - $no_args['errmsg'] = HTML::div(array('class' => 'errors'), + $no_args['errmsg'] = HTML::p(array('class' => 'error'), _("Error: The user HomePage must be a valid WikiWord. Sorry, UserPreferences cannot be saved.")); $no_args['isForm'] = false; return Template('userprefs', $no_args); Modified: trunk/lib/plugin/WatchPage.php =================================================================== --- trunk/lib/plugin/WatchPage.php 2011-01-21 13:21:14 UTC (rev 7852) +++ trunk/lib/plugin/WatchPage.php 2011-01-21 13:28:47 UTC (rev 7853) @@ -116,8 +116,8 @@ if (!defined('FUSIONFORGE') or !FUSIONFORGE) { $email = $pref->get("email"); if (empty($email)) { - return HTML::div( - array('class' => 'errors'), + return HTML::p( + array('class' => 'error'), _("ERROR: No email defined! You need to do this in your "), WikiLink(_("UserPreferences"))); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |