Index: trunk/extensions/OpenStackManager/OpenStackNovaHost.php |
— | — | @@ -141,6 +141,13 @@ |
142 | 142 | } |
143 | 143 | } |
144 | 144 | |
| 145 | + /** |
| 146 | + * @static |
| 147 | + * @param $hostname |
| 148 | + * @param $ip |
| 149 | + * @param $domain OpenStackNovaDomain |
| 150 | + * @return bool |
| 151 | + */ |
145 | 152 | static function addHost( $hostname, $ip, $domain ) { |
146 | 153 | global $wgAuth; |
147 | 154 | global $wgOpenStackManagerLDAPUser, $wgOpenStackManagerLDAPUserPassword; |
Index: trunk/extensions/OpenStackManager/SpecialNovaInstance.php |
— | — | @@ -12,7 +12,6 @@ |
13 | 13 | global $wgRequest, $wgUser; |
14 | 14 | global $wgOpenStackManagerNovaAdminKeys; |
15 | 15 | |
16 | | - wfLoadExtensionMessages('OpenStackManager'); |
17 | 16 | if ( ! $wgUser->isLoggedIn() ) { |
18 | 17 | $this->notLoggedIn(); |
19 | 18 | return true; |
Index: trunk/extensions/OpenStackManager/SpecialNovaProject.php |
— | — | @@ -30,8 +30,6 @@ |
31 | 31 | function execute( $par ) { |
32 | 32 | global $wgRequest, $wgUser; |
33 | 33 | |
34 | | - wfLoadExtensionMessages('OpenStackManager'); |
35 | | - |
36 | 34 | #if ( ! $wgUser->isAllowed( 'manageproject' ) ) { |
37 | 35 | # return false; |
38 | 36 | #} |
Index: trunk/extensions/OpenStackManager/SpecialNovaDomain.php |
— | — | @@ -19,8 +19,6 @@ |
20 | 20 | function execute( $par ) { |
21 | 21 | global $wgRequest, $wgUser; |
22 | 22 | |
23 | | - wfLoadExtensionMessages('OpenStackManager'); |
24 | | - |
25 | 23 | #if ( ! $wgUser->isAllowed( 'manageproject' ) ) { |
26 | 24 | # return false; |
27 | 25 | #} |
Index: trunk/extensions/OpenStackManager/SpecialNovaKey.php |
— | — | @@ -14,8 +14,6 @@ |
15 | 15 | function execute( $par ) { |
16 | 16 | global $wgRequest, $wgUser; |
17 | 17 | |
18 | | - wfLoadExtensionMessages('OpenStackManager'); |
19 | | - |
20 | 18 | if ( ! $wgUser->isLoggedIn() ) { |
21 | 19 | $this->notLoggedIn(); |
22 | 20 | return true; |