Skip to content

Commit

Permalink
Merge pull request #24 from nook-ru/fix_bitrix_admin
Browse files Browse the repository at this point in the history
Fix 404
  • Loading branch information
niksamokhvalov committed Apr 20, 2016
2 parents 2b9a118 + 4b9defb commit f681e54
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions install/admin/admin_helper_route.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?
$bitrixPath = $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/digitalwand.admin_helper/admin/route.php";
$localPath = $_SERVER["DOCUMENT_ROOT"] . "/local/modules/digitalwand.admin_helper/admin/route.php";

if(!@include_once($bitrixPath) AND !@include_once($localPath) ){
include $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin/404.php';
if (!@include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/digitalwand.admin_helper/admin/route.php") {
if (!@include_once $_SERVER["DOCUMENT_ROOT"] . "/local/modules/digitalwand.admin_helper/admin/route.php") {
include $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin/404.php';
}
}
?>

0 comments on commit f681e54

Please sign in to comment.