mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +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
|
// include our page
|
||||||
$file = __DIR__ . '/pages/' . $page . '.php';
|
$file = __DIR__ . '/pages/' . $page . '.php';
|
||||||
if(!@file_exists($file)) {
|
if(!@file_exists($file)) {
|
||||||
if (strpos($page, 'plugins/') !== false) {
|
if (str_contains($page, 'plugins/')) {
|
||||||
$file = BASE . $page;
|
$file = BASE . $page;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user