style fixes
This commit is contained in:
parent
5112dac102
commit
665bb41c1f
|
@ -215,7 +215,9 @@ class OC_App{
|
|||
return false;
|
||||
}else{
|
||||
OC_Appconfig::setValue( $app, 'enabled', 'yes' );
|
||||
if(isset($appdata['id'])) OC_Appconfig::setValue( $app, 'ocsid', $appdata['id'] );
|
||||
if(isset($appdata['id'])) {
|
||||
OC_Appconfig::setValue( $app, 'ocsid', $appdata['id'] );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}else{
|
||||
|
@ -231,13 +233,12 @@ class OC_App{
|
|||
* This function set an app as disabled in appconfig.
|
||||
*/
|
||||
public static function disable( $app ) {
|
||||
// check if app is a shiped app or not. if not delete
|
||||
// check if app is a shipped app or not. if not delete
|
||||
OC_Appconfig::setValue( $app, 'enabled', 'no' );
|
||||
|
||||
// check if app is a shiped app or not. if not delete
|
||||
// check if app is a shipped app or not. if not delete
|
||||
if(!OC_App::isShipped( $app )){
|
||||
OC_Installer::removeApp( $app );
|
||||
}else{
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue