Przeglądaj źródła

#178 - Studio: Custom category for new keys.

AntonLV 11 lat temu
rodzic
commit
1990b27f74

+ 3 - 0
studio/classes/BxDolStudioPolyglotKeys.php

@@ -7,6 +7,9 @@
  * @{
  */
 
+define('BX_DOL_STUDIO_PK_CATEGORY_SYSTEM', 1);
+define('BX_DOL_STUDIO_PK_CATEGORY_CUSTOM', 2);
+
 define('BX_DOL_STUDIO_PK_PREVIEW', 100);
 
 class BxDolStudioPolyglotKeys extends BxTemplStudioGrid

+ 1 - 1
studio/template/scripts/BxBaseStudioPolyglotKeys.php

@@ -55,7 +55,7 @@ class BxBaseStudioPolyglotKeys extends BxDolStudioPolyglotKeys
                     'name' => 'category_id',
                     'caption' => _t('_adm_pgt_txt_nkp_module'),
                     'values' => $this->oDb->getCategories(),
-                    'value' => '1',
+                    'value' => BX_DOL_STUDIO_PK_CATEGORY_CUSTOM,
                     'db' => array (
                         'pass' => 'Int',
                     ),