Commit:    513c4e80c8512784da66ecdb57c79802c712407e
Author:    Roman Pronskiy <[email protected]>         Mon, 23 Nov 2020 
17:36:58 +0200
Committer: Sara Golemon <[email protected]>      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>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to