login/pass: error messages below page title master
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 27 Dec 2021 18:21:48 +0000 (19:21 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 27 Dec 2021 18:21:48 +0000 (19:21 +0100)
Headers prepended probably since commit v4.5-6-g50f9b29cc2 (2020-12-19)
[page: ignore output buffer in article render].

login/pass/index.php

index 4fb50d0f2993195f9bafc117287d4729dcae1f97..8db1c885a0dc383561c6d066b096fcc119511e96 100644 (file)
@@ -9,7 +9,7 @@ if (isset($_GET['token'])) {
        }
        else {
                http_response_code(403);
-               print "<p class=warn>Code onjuist, geen toestemming om wachtwoord in te stellen.</p>\n";
+               $Page->place['warn'] = "Code onjuist, geen toestemming om wachtwoord in te stellen.";
                return TRUE;
        }
 }
@@ -26,7 +26,7 @@ if ($_POST) {
                return;
        }
        http_response_code(400);
-       print "<p class=warn>$error</p>\n\n";
+       $Page->place['warn'] = $error;
 }
 
 ?>
@@ -44,3 +44,5 @@ Dit zal de huidige code vervangen.
 <input type="submit" value="Wijzig" />
 </p>
 </form>
+<?php
+$Page->raw .= ob_get_clean();