@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$content = file_get_contents(dirname(__DIR__) . '/template/actions/language.tpl'); |
|
| 3 | +$content = file_get_contents(dirname(__DIR__).'/template/actions/language.tpl'); |
|
| 4 | 4 | $content = parse($content, array( |
| 5 | 5 | 'langOptions' => getLangOptions($install_language)) |
| 6 | 6 | ); |
| 7 | -$content = parse($content, $_lang,'[%','%]'); |
|
| 7 | +$content = parse($content, $_lang, '[%', '%]'); |
|
| 8 | 8 | |
| 9 | 9 | echo $content; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | 'sv' => 'svenska' |
| 38 | 38 | ); |
| 39 | 39 | $_langISO6391 = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); |
| 40 | -if (! empty($_langFiles[$_langISO6391])) { |
|
| 40 | +if (!empty($_langFiles[$_langISO6391])) { |
|
| 41 | 41 | $install_language = $_langFiles[$_langISO6391]; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | # load language file |
| 53 | 53 | require_once 'lang/english.inc.php'; // As fallback |
| 54 | -require_once 'lang/' . $install_language . '.inc.php'; |
|
| 54 | +require_once 'lang/'.$install_language.'.inc.php'; |
|
| 55 | 55 | |
| 56 | 56 | $manager_language = $install_language; |
| 57 | 57 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * |
| 16 | 16 | * Please commit your language changes on Transifex (https://www.transifex.com/projects/p/modx-evolution/) or on GitHub (https://github.com/modxcms/evolution). |
| 17 | 17 | */ |
| 18 | -setlocale (LC_ALL, 'ru_RU.UTF-8'); |
|
| 18 | +setlocale(LC_ALL, 'ru_RU.UTF-8'); |
|
| 19 | 19 | $_lang["agree_to_terms"] = 'Согласиться с условиями лицензии и приступить к установке'; |
| 20 | 20 | $_lang["alert_database_test_connection"] = 'Вы должны создать базу данных или выбрать базу данных для проверки!'; |
| 21 | 21 | $_lang["alert_database_test_connection_failed"] = 'Неудачная проверка выбранной базы данных!'; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * @deprecated EvolutionCMS\Legacy\ErrorHandler |
| 6 | 6 | * @todo could be unnecessary |
| 7 | 7 | */ |
| 8 | -class errorHandler extends EvolutionCMS\Legacy\ErrorHandler { |
|
| 8 | +class errorHandler extends EvolutionCMS\Legacy\ErrorHandler{ |
|
| 9 | 9 | public function include_lang($context = 'common') |
| 10 | 10 | { |
| 11 | 11 | parent::includeLang($context); |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | -if(!$modx->hasPermission('new_document') || !$modx->hasPermission('save_document')) { |
|
| 5 | +if (!$modx->hasPermission('new_document') || !$modx->hasPermission('save_document')) { |
|
| 6 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | -$id = isset($_GET['id'])? (int)$_GET['id'] : 0; |
|
| 10 | -if($id==0) { |
|
| 9 | +$id = isset($_GET['id']) ? (int) $_GET['id'] : 0; |
|
| 10 | +if ($id == 0) { |
|
| 11 | 11 | $modx->webAlertAndQuit($_lang["error_no_id"]); |
| 12 | 12 | } |
| 13 | 13 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | $udperms->role = $_SESSION['mgrRole']; |
| 21 | 21 | $udperms->duplicateDoc = true; |
| 22 | 22 | |
| 23 | -if(!$udperms->checkPermissions()) { |
|
| 23 | +if (!$udperms->checkPermissions()) { |
|
| 24 | 24 | $modx->webAlertAndQuit($_lang["access_permission_denied"]); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -32,5 +32,5 @@ discard block |
||
| 32 | 32 | $_SESSION['itemname'] = $name; |
| 33 | 33 | |
| 34 | 34 | // finish cloning - redirect |
| 35 | -$header="Location: index.php?r=1&a=3&id=$id"; |
|
| 35 | +$header = "Location: index.php?r=1&a=3&id=$id"; |
|
| 36 | 36 | header($header); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | <div class="container container-body"> |
| 45 | 45 | <?php |
| 46 | 46 | if (!isset($_POST['import'])) { |
| 47 | - echo "<div class=\"element-edit-message\">" . $_lang['import_site_message'] . "</div>"; |
|
| 47 | + echo "<div class=\"element-edit-message\">".$_lang['import_site_message']."</div>"; |
|
| 48 | 48 | ?> |
| 49 | 49 | <form action="index.php" method="post" name="importFrm"> |
| 50 | 50 | <input type="hidden" name="import" value="import"/> |