Skip to content

Commit 5c3cac4

Browse files
committed
Add "direct file access" check
1 parent b2dd0c4 commit 5c3cac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_upgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use FeatherBB\Core\AdminUtils;
1313

1414
// Make sure no one attempts to run this script "directly"
15-
if (isset($feather)) {
15+
if (isset($upgrade_script)) {
1616
// Check if 'style' folder from version <= 0.2.2 exists
1717
if (is_dir(__DIR__.'/style')) {
1818
AdminUtils::delete_folder(__DIR__.'/style');

0 commit comments

Comments
 (0)