Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -30,28 +30,6 @@ class _Upgrade
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
try
|
||||
{
|
||||
$client = \IPS\Api\OAuthClient::constructFromData( \IPS\Db::i()->select( '*', 'core_oauth_clients', array( 'oauth_type=?', 'mobile' ) )->first() );
|
||||
|
||||
foreach ( \IPS\Api\OAuthClient::mobileAppValues() as $k => $v )
|
||||
{
|
||||
if ( $k === 'redirect_uris' or $k === 'scopes' )
|
||||
{
|
||||
$client->$k = json_encode( $v );
|
||||
}
|
||||
else
|
||||
{
|
||||
$client->$k = \is_array( $v ) ? implode( ',', $v ) : $v;
|
||||
}
|
||||
}
|
||||
$client->save();
|
||||
}
|
||||
catch ( \UnderflowException $e )
|
||||
{
|
||||
// Don't need to do anything
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user