diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-07-24 17:11:25 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-07-24 17:11:25 -0400 |
commit | e28e269cac60b39ab81492a03ab65feb858f9223 (patch) | |
tree | d11ced23f8847e114919da68dc5fcead14f2a1f4 /app/model | |
parent | 1e8de7e6b598f428fbb2a875e5306bc65394f7b5 (diff) | |
download | thedroneely.com-e28e269cac60b39ab81492a03ab65feb858f9223.tar.gz thedroneely.com-e28e269cac60b39ab81492a03ab65feb858f9223.tar.bz2 thedroneely.com-e28e269cac60b39ab81492a03ab65feb858f9223.zip |
app/model/Navigation: Strip query string from url for more accurate home page check
Diffstat (limited to 'app/model')
-rw-r--r-- | app/model/Navigation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/model/Navigation.php b/app/model/Navigation.php index 48fb710..1a6b88a 100644 --- a/app/model/Navigation.php +++ b/app/model/Navigation.php @@ -12,7 +12,7 @@ class Navigation public function isActiveHome() { - if (strlen($_SERVER['REQUEST_URI']) === 1) { + if (strlen(strtok($_SERVER['REQUEST_URI'], '?')) === 1) { return 'navbar__active '; } return; |