|
|
@@ -13,7 +13,7 @@
|
|
|
*/
|
|
|
class BxBaseStudioSettingsServices extends BxDol
|
|
|
{
|
|
|
- protected $oDb;
|
|
|
+ protected $oDb;
|
|
|
|
|
|
public function __construct()
|
|
|
{
|
|
|
@@ -22,10 +22,21 @@ class BxBaseStudioSettingsServices extends BxDol
|
|
|
$this->oDb = new BxDolStudioSettingsQuery();
|
|
|
}
|
|
|
|
|
|
- public function serviceAlertResponseSysImagesCustomFileDeleted($oAlert)
|
|
|
+ public function serviceAlertResponseChangeKands($oAlert)
|
|
|
+ {
|
|
|
+ if(!in_array($oAlert->aExtras['option'], ['sys_oauth_key', 'sys_oauth_secret']))
|
|
|
+ return;
|
|
|
+
|
|
|
+ if(strcmp($oAlert->aExtras['value'], $oAlert->aExtras['value_prior']) == 0)
|
|
|
+ return;
|
|
|
+
|
|
|
+ BxDolStudioOAuth::unsetAuthorized();
|
|
|
+ }
|
|
|
+
|
|
|
+ public function serviceAlertResponseSysImagesCustomFileDeleted($oAlert)
|
|
|
{
|
|
|
if(!isset($oAlert->aExtras['ghost']['content_id']))
|
|
|
- return;
|
|
|
+ return;
|
|
|
|
|
|
$iOption = (int)$oAlert->aExtras['ghost']['content_id'];
|
|
|
|
|
|
@@ -33,7 +44,7 @@ class BxBaseStudioSettingsServices extends BxDol
|
|
|
$this->oDb->getOptions(array('type' => 'by_id', 'value' => $iOption), $aOption, false);
|
|
|
|
|
|
if(!empty($aOption) && is_array($aOption))
|
|
|
- setParam($aOption['name'], 0);
|
|
|
+ setParam($aOption['name'], 0);
|
|
|
}
|
|
|
}
|
|
|
|