[web-php] master: Remove unnecessary code (#708)

From: Date: Thu, 29 Sep 2022 09:38:06 +0000
Subject: [web-php] master: Remove unnecessary code (#708)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-30582@lists.php.net to get a copy of this message
Author: Kamil Tekiela (kamil-tekiela) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2022-09-29T10:28:51+01:00 Commit: https://github.com/php/web-php/commit/8b776fbd72aade3c8cb9eab3374bd3461e7d56d6 Raw diff: https://github.com/php/web-php/commit/8b776fbd72aade3c8cb9eab3374bd3461e7d56d6.diff Remove unnecessary code (#708) Changed paths: M include/layout.inc M include/shared-manual.inc Diff: diff --git a/include/layout.inc b/include/layout.inc index 8ffebd487..14d6d3607 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -459,7 +459,7 @@ EOT; return $retval; } -function site_header($title = '', $config = []) +function site_header($title = 'Hypertext Preprocessor', $config = []) { global $MYSITE; @@ -486,10 +486,6 @@ function site_header($title = '', $config = []) $config["css_overwrite"] = ["/styles/i-love-markdown.css"]; } - if (empty($title)) { - $title = "Hypertext Preprocessor"; - } - // shorturl; http://wiki.snaplog.com/short_url if (isset($_SERVER['BASE_PAGE']) && $shortname = get_shortname($_SERVER["BASE_PAGE"])) { $shorturl = "https://www.php.net/" . $shortname; diff --git a/include/shared-manual.inc b/include/shared-manual.inc index 8e4c1c033..90be5acb0 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -287,7 +287,7 @@ function manual_setup($setup) { ]; // Load user note for this page - list($filename, $title) = $PGI['this']; + $filename = $PGI['this'][0]; // Drop file extension from the name if (substr($filename, -4) == '.php') {

« previous php.webmaster (#30582) next »