diff --git a/src/UserNotes/UserNoteService.php b/src/UserNotes/UserNoteService.php index 5e49ad9b5..ec9a9838b 100644 --- a/src/UserNotes/UserNoteService.php +++ b/src/UserNotes/UserNoteService.php @@ -55,9 +55,9 @@ final class UserNoteService $repo = strtolower($LANG); // Link target to add a note to the current manual page, // and it's extended form with a [+] image - $addnotelink = '/manual/add-note.php?sect=' . $filename . - '&repo=' . $repo . - '&redirect=' . $_SERVER['BASE_HREF']; + $addnotelink = '/manual/add-note.php?sect=' . $filename . + '&repo=' . $repo . + '&redirect=' . $_SERVER['BASE_HREF']; $addnotesnippet = make_link( $addnotelink, "+$addNote", @@ -71,12 +71,12 @@ final class UserNoteService $userContributedNotes = autogen('user_contributed_notes', $LANG); echo << -
- {$addnotesnippet} -

$userContributedNotes {$noteCountHtml}

-
-END_USERNOTE_HEADER; +
+
+ {$addnotesnippet} +

$userContributedNotes {$noteCountHtml}

+
+ END_USERNOTE_HEADER; // If we have no notes, then inform the user if ($num_notes === 0) { @@ -125,18 +125,18 @@ END_USERNOTE_HEADER; } $rredir_filename = urlencode($redir_filename); $votediv = << -
- up -
-
- down -
-
- {$vote} -
- -VOTEDIV; +
+
+ up +
+
+ down +
+
+ {$vote} +
+
+ VOTEDIV; } else { $votediv = null; } @@ -173,12 +173,12 @@ VOTEDIV; echo <<{$votediv}{$name}{$admin}
{$datestr}
-
-{$text} -
- -USER_NOTE_TEXT; +
{$votediv}{$name}{$admin}
{$datestr}
+
+ {$text} +
+
+ USER_NOTE_TEXT; } // Clean out the content of one user note for printing to HTML @@ -230,7 +230,7 @@ USER_NOTE_TEXT; ($target ?: "_new"), htmlspecialchars($url, ENT_QUOTES | ENT_IGNORE), ($target ?: "_new"), - $windowprops, + $windowprops, ($linktext ?: $url), ); }