|
12 | 12 |
|
13 | 13 | class Admin_Tools_Command extends EE_Command { |
14 | 14 |
|
15 | | - /** |
16 | | - * @var string $command Name of the command being run. |
17 | | - */ |
18 | | - private $command; |
19 | | - |
20 | 15 | /** |
21 | 16 | * @var Filesystem $fs Symfony Filesystem object. |
22 | 17 | */ |
@@ -103,7 +98,7 @@ public function enable( $args, $assoc_args ) { |
103 | 98 | \EE\Auth\Utils\init_global_admin_tools_auth(); |
104 | 99 |
|
105 | 100 | EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' ); |
106 | | - $args = auto_site_name( $args, $this->command, __FUNCTION__ ); |
| 101 | + $args = auto_site_name( $args, 'admin-tools', __FUNCTION__ ); |
107 | 102 | $force = EE\Utils\get_flag_value( $assoc_args, 'force' ); |
108 | 103 | $this->site_data = Site::find( EE\Utils\remove_trailing_slash( $args[0] ) ); |
109 | 104 | if ( ! $this->site_data || ! $this->site_data->site_enabled ) { |
@@ -169,7 +164,7 @@ public function enable( $args, $assoc_args ) { |
169 | 164 | public function disable( $args, $assoc_args ) { |
170 | 165 |
|
171 | 166 | EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' ); |
172 | | - $args = auto_site_name( $args, $this->command, __FUNCTION__ ); |
| 167 | + $args = auto_site_name( $args, 'admin-tools', __FUNCTION__ ); |
173 | 168 | $force = EE\Utils\get_flag_value( $assoc_args, 'force' ); |
174 | 169 | $this->site_data = Site::find( EE\Utils\remove_trailing_slash( $args[0] ) ); |
175 | 170 | if ( ! $this->site_data || ! $this->site_data->site_enabled ) { |
|
0 commit comments