1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00

Minor unrelated updates

This commit is contained in:
Ryan Cramer
2021-08-06 14:21:27 -04:00
parent 9e23967b12
commit f39d836bf1
2 changed files with 2 additions and 2 deletions

View File

@@ -1313,7 +1313,7 @@ class Session extends Wire implements \IteratorAggregate {
// note for 302 redirects we send no header other than 'Location: url' // note for 302 redirects we send no header other than 'Location: url'
$http = new WireHttp(); $http = new WireHttp();
$this->wire($http); $this->wire($http);
if($status != 302) $http->sendStatusHeader($status); $http->sendStatusHeader($status);
$http->sendHeader("Location: $url"); $http->sendHeader("Location: $url");
exit(0); exit(0);

View File

@@ -70,7 +70,7 @@ if(!isset($content)) $content = '';
$headline = $adminTheme->getHeadline(); $headline = $adminTheme->getHeadline();
$headlinePos = strpos($content, ">$headline</h1>"); $headlinePos = strpos($content, ">$headline</h1>");
if(!$adminTheme->isModal && ($headlinePos === false || $headlinePos < 500)) { if(!$adminTheme->isModal && ($headlinePos === false || $headlinePos < 500)) {
echo "<h1 class='uk-margin-remove-top'>$headline</h1>"; echo "<h1 id='pw-content-title' class='uk-margin-remove-top'>$headline</h1>";
} }
?> ?>