Completed
Push — develop ( 060e49...f8c17c )
by Serg
05:54
created
manager/includes/header.inc.php 1 patch
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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 />
4 4
     Please use the EVO Content Manager instead of accessing this file directly.");
5 5
 }
@@ -10,14 +10,14 @@  discard block
 block discarded – undo
10 10
 $modx_textdir = isset($modx_textdir) ? $modx_textdir : null;
11 11
 $onManagerMainFrameHeaderHTMLBlock = is_array($evtOut) ? implode("\n", $evtOut) : '';
12 12
 $textdir = $modx_textdir === 'rtl' ? 'rtl' : 'ltr';
13
-if (!isset($modx->config['mgr_jquery_path'])) {
13
+if (!isset($modx->config['mgr_jquery_path'])) {
14 14
     $modx->config['mgr_jquery_path'] = 'media/script/jquery/jquery.min.js';
15 15
 }
16
-if (!isset($modx->config['mgr_date_picker_path'])) {
16
+if (!isset($modx->config['mgr_date_picker_path'])) {
17 17
     $modx->config['mgr_date_picker_path'] = 'media/script/air-datepicker/datepicker.inc.php';
18 18
 }
19 19
 
20
-switch ($modx->config['manager_theme_mode']) {
20
+switch ($modx->config['manager_theme_mode']) {
21 21
     case '1':
22 22
         $body_class .= ' lightness';
23 23
         break;
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 
35 35
 $css = 'media/style/' . $modx->config['manager_theme'] . '/style.css?v=' . $lastInstallTime;
36 36
 
37
-if ($modx->config['manager_theme'] == 'default') {
37
+if ($modx->config['manager_theme'] == 'default') {
38 38
     if (!file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css')
39
-        && is_writable(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css')) {
39
+        && is_writable(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css')) {
40 40
         require_once MODX_BASE_PATH . 'assets/lib/Formatter/CSSMinify.php';
41 41
         $minifier = new Formatter\CSSMinify();
42 42
         $minifier->addFile(MODX_MANAGER_PATH . 'media/style/common/bootstrap/css/bootstrap.min.css');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             $css
57 57
         );
58 58
     }
59
-    if (file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css')) {
59
+    if (file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css')) {
60 60
         $css = 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css?v=' . $lastInstallTime;
61 61
     }
62 62
 }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     <script src="media/script/main.js"></script>
114 114
     <script>
115 115
         <?php
116
-        if (isset($_REQUEST['r']) && preg_match('@^[0-9]+$@', $_REQUEST['r'])) {
116
+        if (isset($_REQUEST['r']) && preg_match('@^[0-9]+$@', $_REQUEST['r'])) {
117 117
             echo 'doRefresh(' . $_REQUEST['r'] . ");\n";
118 118
         }
119 119
         ?>
Please login to merge, or discard this patch.