Skip to content

Commit 8b776fb

Browse files
Remove unnecessary code (#708)
1 parent 4a30b32 commit 8b776fb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

include/layout.inc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ EOT;
459459
return $retval;
460460
}
461461

462-
function site_header($title = '', $config = [])
462+
function site_header($title = 'Hypertext Preprocessor', $config = [])
463463
{
464464
global $MYSITE;
465465

@@ -486,10 +486,6 @@ function site_header($title = '', $config = [])
486486
$config["css_overwrite"] = ["/styles/i-love-markdown.css"];
487487
}
488488

489-
if (empty($title)) {
490-
$title = "Hypertext Preprocessor";
491-
}
492-
493489
// shorturl; http://wiki.snaplog.com/short_url
494490
if (isset($_SERVER['BASE_PAGE']) && $shortname = get_shortname($_SERVER["BASE_PAGE"])) {
495491
$shorturl = "https://www.php.net/" . $shortname;

include/shared-manual.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function manual_setup($setup) {
287287
];
288288

289289
// Load user note for this page
290-
list($filename, $title) = $PGI['this'];
290+
$filename = $PGI['this'][0];
291291

292292
// Drop file extension from the name
293293
if (substr($filename, -4) == '.php') {

0 commit comments

Comments
 (0)