Skip to content

Commit

Permalink
[K6.0] Undefined constant KPATH_ADMIN #9500
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Apr 4, 2023
1 parent 35c1db9 commit b0cebfb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/libraries/kunena/src/Forum/KunenaForum.php
Expand Up @@ -165,9 +165,10 @@ public static function enabled($checkAdmin = true): bool
/**
* Check if Kunena Forum is safe to be used.
*
* If installer is running, it's unsafe to use our framework. Files may be currently replaced with
* new ones and the database structure might be inconsistent. Using forum during installation will
* likely cause fatal errors and data corruption if you attempt to update objects in the database.
* Legacy method which check if installer is running, it's unsafe to use our framework. Files may be
* currently replaced with new ones and the database structure might be inconsistent. Using forum
* during installation will likely cause fatal errors and data corruption if you attempt to update
* bjects in the database.
*
* Always detect Kunena in your code before you start using the framework:
*
Expand All @@ -191,7 +192,7 @@ public static function enabled($checkAdmin = true): bool
*/
public static function installed(): bool
{
return !is_file(KPATH_ADMIN . '/install.php') || self::isDev();
return self::isDev();
}

/**
Expand Down

0 comments on commit b0cebfb

Please sign in to comment.