Skip to content

Commit 473ff85

Browse files
committed
Check plugin name
1 parent 892a16b commit 473ff85

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

webdav.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ public function __construct() {
3131
}
3232

3333
// Stop services on plugin disabled.
34-
public function hcpp_plugin_disabled() {
35-
$this->stop();
34+
public function hcpp_plugin_disabled( $plugin ) {
35+
if ( $plugin === 'webdav') $this->stop();
36+
return $plugin;
3637
}
3738

3839
// Start services on plugin enabled.
39-
public function hcpp_plugin_enabled() {
40-
$this->start();
40+
public function hcpp_plugin_enabled( $plugin ) {
41+
if ( $plugin == 'webdav' ) $this->start();
42+
return $plugin;
4143
}
4244

4345
// Intercept the certificate generation and copy over ssl certs for the webdav domain.

0 commit comments

Comments
 (0)