We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dee880 commit 7ab16b2Copy full SHA for 7ab16b2
app/Libraries/Blog.php
@@ -116,7 +116,7 @@ public function getPopularPosts(int $limit = 5)
116
foreach ($files as $file) {
117
foreach ($slugs as $slug => $count) {
118
try {
119
- if (stripos($file, $slug) !== false) {
+ if (str_contains(strtolower($file), strtolower($slug))) {
120
$posts[$count] = $this->getPost($slug);
121
}
122
0 commit comments