Ticket #1073 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

parenthesis position error in edit.php

Reported by: fguillier Owned by: BrianKoontz
Priority: normal Milestone: 1.3.2
Component: handlers Version: trunk
Severity: normal Keywords: edit, error, anonymous
Cc:

Description

When not connected and trying to edit a page with the trunk version, the following error appears:

Warning: sprintf() [function.sprintf]: Too few arguments in [...] on line 287.

The parenthesis in code is not at the right place. Patch to follow.

Change History

Changed 3 years ago by fguillier

Patch:

Index: edit.php
===================================================================
--- edit.php    (revision 1801)
+++ edit.php    (working copy)
@@ -284,7 +284,7 @@
 }
 else
 {
-       $message = '<em class="error">'.sprintf(T_("You don't have write access to this page. You might need to <a href=\"%s\">login</a> or <a href=\"%s\">register an account</a> to be able to edit this page.", $this->Href('', 'UserSettings'), $this->Href('', 'UserSettings'))).'</em><br />'."\n".
+       $message = '<em class="error">'.sprintf(T_("You don't have write access to this page. You might need to <a href=\"%s\">login</a> or <a href=\"%s\">register an account</a> to be able to edit this page."), $this->Href('', 'UserSettings'), $this->Href('', 'UserSettings')).'</em><br />'."\n".
                        "<br />\n".
                        '<a href="'.$this->Href('showcode').'" title="'.T_("Click to view page formatting code").'">'.T_("View formatting code for this page").'</a>'.
                        "<br />\n";

Changed 3 years ago by BrianKoontz

(In [1802]) Fixed warning involving misplaced parens. Refs #1073.

Changed 3 years ago by BrianKoontz

  • owner changed from unassigned to BrianKoontz
  • status changed from new to assigned
  • milestone set to 1.4

Changed 3 years ago by BrianKoontz

  • status changed from assigned to closed
  • resolution set to fixed

Changed 3 years ago by BrianKoontz

  • milestone changed from 1.4 to 1.3.2
Note: See TracTickets for help on using tickets.