Skip to content

Commit 6eb6f9b

Browse files
v7.1-b4: Activation - Fix htaccess generation bug when reactivating after deactivated (#825)
* Activation - Fix htaccess update * Fix Multisite
1 parent 5da498d commit 6eb6f9b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/activation.cls.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,14 @@ public static function register_activation()
5454
$count = 0;
5555
!defined('LSCWP_LOG_TAG') && define('LSCWP_LOG_TAG', 'Activate_' . get_current_blog_id());
5656

57+
/* Network file handler */
5758
if (is_multisite()) {
5859
$count = self::get_network_count();
5960
if ($count !== false) {
6061
$count = intval($count) + 1;
6162
set_site_transient(self::NETWORK_TRANSIENT_COUNT, $count, DAY_IN_SECONDS);
6263
}
63-
}
6464

65-
/* Network file handler */
66-
if (is_multisite()) {
6765
if (!is_network_admin()) {
6866
if ($count === 1) {
6967
// Only itself is activated, set .htaccess with only CacheLookUp
@@ -75,6 +73,7 @@ public static function register_activation()
7573
}
7674
}
7775
}
76+
self::cls()->update_files();
7877

7978
if (defined('LSCWP_REF') && LSCWP_REF == 'whm') {
8079
GUI::update_option(GUI::WHM_MSG, GUI::WHM_MSG_VAL);

0 commit comments

Comments
 (0)