AntonLV 12 лет назад
Родитель
Сommit
ddd0097228

+ 0 - 3
install/patterns/header.inc.php

@@ -66,9 +66,6 @@ define('BX_DOL_DIR_STUDIO_INC', BX_DOL_DIR_STUDIO . 'inc/');
 define('BX_DOL_DIR_STUDIO_CLASSES', BX_DOL_DIR_STUDIO . 'classes/');
 define('BX_DOL_DIR_STUDIO_BASE', BX_DOL_DIR_STUDIO . 'template/');
 
-//--- BoonEx Unity Settings ---//
-define('BX_DOL_UNITY_URL_ROOT', 'http://www.boonex.com/');
-
 //--- User Roles ---//
 define('BX_DOL_ROLE_GUEST', 0);
 define('BX_DOL_ROLE_MEMBER', 1);

+ 3 - 0
studio/classes/BxDolStudioOAuth.php

@@ -7,6 +7,9 @@
  * @{
  */
 
+define('BX_DOL_UNITY_URL_ROOT', 'http://www.boonex.com/');
+define('BX_DOL_UNITY_URL_MARKET', BX_DOL_UNITY_URL_ROOT . 'market/');
+
 define('BX_DOL_OAUTH_URL_REQUEST_TOKEN', BX_DOL_UNITY_URL_ROOT . 'scripts_public/oauth_request_token.php5');
 define('BX_DOL_OAUTH_URL_AUTHORIZE', BX_DOL_UNITY_URL_ROOT . 'scripts_public/oauth_authorize.php5');
 define('BX_DOL_OAUTH_URL_ACCESS_TOKEN', BX_DOL_UNITY_URL_ROOT . 'scripts_public/oauth_access_token.php5');

+ 1 - 3
studio/classes/BxDolStudioStore.php

@@ -8,10 +8,9 @@
  */
 
 bx_import('BxTemplStudioPage');
+bx_import('BxDolStudioOAuth');
 bx_import('BxDolStudioStoreQuery');
 
-define('BX_DOL_UNITY_URL_MARKET', BX_DOL_UNITY_URL_ROOT . 'market/');
-
 define('BX_DOL_STUDIO_STR_TYPE_DEFAULT', 'downloaded');
 
 class BxDolStudioStore extends BxTemplStudioPage
@@ -41,7 +40,6 @@ class BxDolStudioStore extends BxTemplStudioPage
         if(is_string($sPage) && !empty($sPage))
             $this->sPage = $sPage;
 
-        bx_import('BxDolStudioOAuth');
         $this->iClient = BxDolStudioOAuth::getAuthorizedClient();
 
         //--- Check actions ---//