mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Use php 7 str_contains
This commit is contained in:
parent
c8d4e7d186
commit
9b781d09a9
@ -50,7 +50,7 @@ if(!$logged || !admin()) {
|
||||
// include our page
|
||||
$file = __DIR__ . '/pages/' . $page . '.php';
|
||||
if(!@file_exists($file)) {
|
||||
if (strpos($page, 'plugins/') !== false) {
|
||||
if (str_contains($page, 'plugins/')) {
|
||||
$file = BASE . $page;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user