com web/php: Fix active state for PHP8 menu item: include/header.inc
| From: | Sara Golemon | Date: | Wed, 25 Nov 2020 20:28:13 +0000 |
| Subject: | com web/php: Fix active state for PHP8 menu item: include/header.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28868@lists.php.net to get a copy of this message | ||
Commit: 513c4e80c8512784da66ecdb57c79802c712407e
Author: Roman Pronskiy <roman@pronskiy.com> Mon, 23 Nov 2020 17:36:58 +0200
Committer: Sara Golemon <pollita@php.net> Wed, 25 Nov 2020 20:28:13 +0000
Parents: 992fefd0a25f3b39332ff6db748197bee30ba20b
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=513c4e80c8512784da66ecdb57c79802c712407e
Log:
Fix active state for PHP8 menu item
Changed paths:
M include/header.inc
Diff:
diff --git a/include/header.inc b/include/header.inc
index fad1ea624..cb2dfa7ba 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -120,7 +120,7 @@ if (!isset($config["languages"])) {
<li class="<?php echo $curr == "docs" ? "active" :
""?>"><a href="/docs.php">Documentation</a></li>
<li class="<?php echo $curr == "community" ? "active" :
""?>"><a href="/get-involved" >Get
Involved</a></li>
<li class="<?php echo $curr == "help" ? "active" :
""?>"><a href="/support">Help</a></li>
- <li class="<?php echo $curr == "php_8_0_x" ? "active" :
"" ?>">
+ <li class="<?php echo false !== strpos($curr, "php_8_0_x") ?
"active" : "" ?>">
<a href="/releases/8_0_x.php">
<img src="/images/php8/logo_php8.svg" alt="php8"
height="22" width="60">
</a>