Skip to content

Commit

Permalink
upd to 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfriend committed Mar 31, 2022
1 parent 5e18c1e commit 9d4d4e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
16 changes: 6 additions & 10 deletions utf8/dev2fun.multidomain/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @author dev2fun (darkfriend)
* @copyright darkfriend
* @version 1.1.2
* @version 1.1.4
*/

namespace Dev2fun\MultiDomain;
Expand Down Expand Up @@ -389,14 +389,10 @@ public static function IsAddTab()
return false;
}

$curPath = $APPLICATION->GetCurPage();
switch ($curPath) {
case (\preg_match('#(iblock_element_edit)#', $curPath) !== false):
case (\preg_match('#(highloadblock_row_edit)#', $curPath) !== false):
case (\preg_match('#(iblock_section_edit)#', $curPath) !== false):
return true;
}
return false;
return (bool) preg_match(
'#(iblock_element_edit|highloadblock_row_edit|iblock_section_edit)#',
$APPLICATION->GetCurPage()
);
}

/**
Expand Down Expand Up @@ -447,7 +443,7 @@ public static function OnAfterIBlockSectionDelete($arFields)
public static function ShowThanksNotice()
{
\CAdminNotify::Add([
'MESSAGE' => \Bitrix\Main\Localization\Loc::getMessage('D2F_MULTIDOMAIN_DONATE_MESSAGES', ['#URL#' => '/bitrix/admin/settings.php?lang=ru&mid=dev2fun.multidomain&mid_menu=1&tabControl_active_tab=donate']),
'MESSAGE' => \Bitrix\Main\Localization\Loc::getMessage('D2F_MULTIDOMAIN_DONATE_MESSAGES', ['#URL#' => '/bitrix/admin/settings.php?lang=ru&mid=dev2fun.multidomain&mid_menu=1&tabControl_active_tab=editDonate']),
'TAG' => 'dev2fun_multidomain_update',
'MODULE_ID' => 'dev2fun.multidomain',
]);
Expand Down
16 changes: 6 additions & 10 deletions win1251/dev2fun.multidomain/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @author dev2fun (darkfriend)
* @copyright darkfriend
* @version 1.1.2
* @version 1.1.4
*/

namespace Dev2fun\MultiDomain;
Expand Down Expand Up @@ -389,14 +389,10 @@ public static function IsAddTab()
return false;
}

$curPath = $APPLICATION->GetCurPage();
switch ($curPath) {
case (\preg_match('#(iblock_element_edit)#', $curPath) !== false):
case (\preg_match('#(highloadblock_row_edit)#', $curPath) !== false):
case (\preg_match('#(iblock_section_edit)#', $curPath) !== false):
return true;
}
return false;
return (bool) preg_match(
'#(iblock_element_edit|highloadblock_row_edit|iblock_section_edit)#',
$APPLICATION->GetCurPage()
);
}

/**
Expand Down Expand Up @@ -447,7 +443,7 @@ public static function OnAfterIBlockSectionDelete($arFields)
public static function ShowThanksNotice()
{
\CAdminNotify::Add([
'MESSAGE' => \Bitrix\Main\Localization\Loc::getMessage('D2F_MULTIDOMAIN_DONATE_MESSAGES', ['#URL#' => '/bitrix/admin/settings.php?lang=ru&mid=dev2fun.multidomain&mid_menu=1&tabControl_active_tab=donate']),
'MESSAGE' => \Bitrix\Main\Localization\Loc::getMessage('D2F_MULTIDOMAIN_DONATE_MESSAGES', ['#URL#' => '/bitrix/admin/settings.php?lang=ru&mid=dev2fun.multidomain&mid_menu=1&tabControl_active_tab=editDonate']),
'TAG' => 'dev2fun_multidomain_update',
'MODULE_ID' => 'dev2fun.multidomain',
]);
Expand Down

0 comments on commit 9d4d4e7

Please sign in to comment.