Completed
Push — develop ( d568f8...c061fc )
by Agel_Nash
06:25
created
manager/actions/site_schedule.static.php 1 patch
Braces   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  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 />Please use the EVO Content Manager instead of accessing this file directly.");
4 4
 }
5
-if (!$modx->hasPermission('view_eventlog')) {
5
+if (!$modx->hasPermission('view_eventlog')) {
6 6
     $modx->webAlertAndQuit($_lang["error_no_privileges"]);
7 7
 }
8 8
 ?>
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
 			<?php
20 20
             $rs = $modx->db->select('id, pagetitle, pub_date', $modx->getFullTableName('site_content'), "pub_date > " . time() . "", 'pub_date ASC');
21 21
             $limit = $modx->db->getRecordCount($rs);
22
-            if ($limit < 1) {
22
+            if ($limit < 1) {
23 23
                 ?>
24 24
 				<p><?= $_lang["no_docs_pending_publishing"] ?></p>
25 25
 				<?php
26
-            } else {
26
+            } else {
27 27
                 ?>
28 28
 				<div class="table-responsive">
29 29
 					<table class="grid sortabletable" id="table-1">
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 						</thead>
37 37
 						<tbody>
38 38
 						<?php
39
-                        while ($row = $modx->db->getRow($rs)) {
39
+                        while ($row = $modx->db->getRow($rs)) {
40 40
                             ?>
41 41
 							<tr>
42 42
 								<td class="text-right"><?= $row['id'] ?></td>
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 			<?php
58 58
             $rs = $modx->db->select('id, pagetitle, unpub_date', $modx->getFullTableName('site_content'), "unpub_date > " . time() . "", 'unpub_date ASC');
59 59
             $limit = $modx->db->getRecordCount($rs);
60
-            if ($limit < 1) {
60
+            if ($limit < 1) {
61 61
                 ?>
62 62
 				<p><?= $_lang["no_docs_pending_unpublishing"] ?></p>
63 63
 				<?php
64
-            } else {
64
+            } else {
65 65
                 ?>
66 66
 				<div class="table-responsive">
67 67
 					<table class="grid sortabletable" id="table-2">
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 						</thead>
75 75
 						<tbody>
76 76
 						<?php
77
-                        while ($row = $modx->db->getRow($rs)) {
77
+                        while ($row = $modx->db->getRow($rs)) {
78 78
                             ?>
79 79
 							<tr>
80 80
 								<td class="text-right"><?= $row['id'] ?></td>
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
 			<?php
96 96
             $rs = $modx->db->select('id, pagetitle, pub_date, unpub_date', $modx->getFullTableName('site_content'), "pub_date > 0 OR unpub_date > 0", "pub_date DESC");
97 97
             $limit = $modx->db->getRecordCount($rs);
98
-            if ($limit < 1) {
98
+            if ($limit < 1) {
99 99
                 ?>
100 100
 				<p><?= $_lang["no_docs_pending_pubunpub"] ?></p>
101 101
 				<?php
102
-            } else {
102
+            } else {
103 103
                 ?>
104 104
 				<div class="table-responsive">
105 105
 					<table class="grid sortabletable" id="table-3">
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 						</thead>
114 114
 						<tbody>
115 115
 						<?php
116
-                        while ($row = $modx->db->getRow($rs)) {
116
+                        while ($row = $modx->db->getRow($rs)) {
117 117
                             ?>
118 118
 							<tr>
119 119
 								<td class="text-right"><?= $row['id'] ?></td>
Please login to merge, or discard this patch.
manager/actions/welcome.static.php 1 patch
Braces   +79 added lines, -76 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  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 />Please use the EVO Content Manager instead of accessing this file directly.');
4 4
 }
5 5
 
6 6
 unset($_SESSION['itemname']); // clear this, because it's only set for logging purposes
7 7
 
8
-if ($modx->hasPermission('settings') && (!isset($settings_version) || $settings_version != $modx->getVersionData('version'))) {
8
+if ($modx->hasPermission('settings') && (!isset($settings_version) || $settings_version != $modx->getVersionData('version'))) {
9 9
     // seems to be a new install - send the user to the configuration page
10 10
     exit('<script type="text/javascript">document.location.href="index.php?a=17";</script>');
11 11
 }
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 $_SESSION['nrnewmessages'] = 0;
17 17
 
18 18
 // setup message info
19
-if ($modx->hasPermission('messages')) {
19
+if ($modx->hasPermission('messages')) {
20 20
     include_once(MODX_MANAGER_PATH . 'includes/messageCount.inc.php');
21 21
     $_SESSION['nrtotalmessages'] = $nrtotalmessages;
22 22
     $_SESSION['nrnewmessages'] = $nrnewmessages;
@@ -32,46 +32,46 @@  discard block
 block discarded – undo
32 32
 }
33 33
 
34 34
 // setup icons
35
-if ($modx->hasPermission('new_user') || $modx->hasPermission('edit_user')) {
35
+if ($modx->hasPermission('new_user') || $modx->hasPermission('edit_user')) {
36 36
     $icon = '<i class="[&icons_security_large&]" alt="[%user_management_title%]"> </i>[%user_management_title%]';
37 37
     $ph['SecurityIcon'] = wrapIcon($icon, 75);
38 38
 }
39
-if ($modx->hasPermission('new_web_user') || $modx->hasPermission('edit_web_user')) {
39
+if ($modx->hasPermission('new_web_user') || $modx->hasPermission('edit_web_user')) {
40 40
     $icon = '<i class="[&icons_webusers_large&]" alt="[%web_user_management_title%]"> </i>[%web_user_management_title%]';
41 41
     $ph['WebUserIcon'] = wrapIcon($icon, 99);
42 42
 }
43
-if ($modx->hasPermission('new_module') || $modx->hasPermission('edit_module')) {
43
+if ($modx->hasPermission('new_module') || $modx->hasPermission('edit_module')) {
44 44
     $icon = '<i class="[&icons_modules_large&]" alt="[%manage_modules%]"> </i>[%modules%]';
45 45
     $ph['ModulesIcon'] = wrapIcon($icon, 106);
46 46
 }
47
-if ($modx->hasPermission('new_template') || $modx->hasPermission('edit_template') || $modx->hasPermission('new_snippet') || $modx->hasPermission('edit_snippet') || $modx->hasPermission('new_plugin') || $modx->hasPermission('edit_plugin') || $modx->hasPermission('manage_metatags')) {
47
+if ($modx->hasPermission('new_template') || $modx->hasPermission('edit_template') || $modx->hasPermission('new_snippet') || $modx->hasPermission('edit_snippet') || $modx->hasPermission('new_plugin') || $modx->hasPermission('edit_plugin') || $modx->hasPermission('manage_metatags')) {
48 48
     $icon = '<i class="[&icons_resources_large&]" alt="[%element_management%]"> </i>[%elements%]';
49 49
     $ph['ResourcesIcon'] = wrapIcon($icon, 76);
50 50
 }
51
-if ($modx->hasPermission('bk_manager')) {
51
+if ($modx->hasPermission('bk_manager')) {
52 52
     $icon = '<i class="[&icons_backup_large&]" alt="[%bk_manager%]"> </i>[%backup%]';
53 53
     $ph['BackupIcon'] = wrapIcon($icon, 93);
54 54
 }
55
-if ($modx->hasPermission('help')) {
55
+if ($modx->hasPermission('help')) {
56 56
     $icon = '<i class="[&icons_help_large&]" alt="[%help%]" /> </i>[%help%]';
57 57
     $ph['HelpIcon'] = wrapIcon($icon, 9);
58 58
 }
59 59
 
60
-if ($modx->hasPermission('new_document')) {
60
+if ($modx->hasPermission('new_document')) {
61 61
     $icon = '<i class="[&icons_resource_large&]"></i>[%add_resource%]';
62 62
     $ph['ResourceIcon'] = wrapIcon($icon, 4);
63 63
     $icon = '<i class="[&icons_weblink_large&]"></i>[%add_weblink%]';
64 64
     $ph['WeblinkIcon'] = wrapIcon($icon, 72);
65 65
 }
66
-if ($modx->hasPermission('assets_images')) {
66
+if ($modx->hasPermission('assets_images')) {
67 67
     $icon = '<i class="[&icons_images_large&]"></i>[%images_management%]';
68 68
     $ph['ImagesIcon'] = wrapIcon($icon, 72);
69 69
 }
70
-if ($modx->hasPermission('assets_files')) {
70
+if ($modx->hasPermission('assets_files')) {
71 71
     $icon = '<i class="[&icons_files_large&]"></i>[%files_management%]';
72 72
     $ph['FilesIcon'] = wrapIcon($icon, 72);
73 73
 }
74
-if ($modx->hasPermission('change_password')) {
74
+if ($modx->hasPermission('change_password')) {
75 75
     $icon = '<i class="[&icons_password_large&]"></i>[%change_password%]';
76 76
     $ph['PasswordIcon'] = wrapIcon($icon, 28);
77 77
 }
@@ -79,21 +79,21 @@  discard block
 block discarded – undo
79 79
 $ph['LogoutIcon'] = wrapIcon($icon, 8);
80 80
 
81 81
 // do some config checks
82
-if (($modx->config['warning_visibility'] == 0 && $_SESSION['mgrRole'] == 1) || $modx->config['warning_visibility'] == 1) {
82
+if (($modx->config['warning_visibility'] == 0 && $_SESSION['mgrRole'] == 1) || $modx->config['warning_visibility'] == 1) {
83 83
     include_once(MODX_MANAGER_PATH . 'includes/config_check.inc.php');
84
-    if ($config_check_results != $_lang['configcheck_ok']) {
84
+    if ($config_check_results != $_lang['configcheck_ok']) {
85 85
         $ph['config_check_results'] = $config_check_results;
86 86
         $ph['config_display'] = 'block';
87
-    } else {
87
+    } else {
88 88
         $ph['config_display'] = 'none';
89 89
     }
90
-} else {
90
+} else {
91 91
     $ph['config_display'] = 'none';
92 92
 }
93 93
 
94 94
 // Check logout-reminder
95
-if (isset($_SESSION['show_logout_reminder'])) {
96
-    switch ($_SESSION['show_logout_reminder']['type']) {
95
+if (isset($_SESSION['show_logout_reminder'])) {
96
+    switch ($_SESSION['show_logout_reminder']['type']) {
97 97
         case 'logout_reminder':
98 98
             $date = $modx->toDateFormat($_SESSION['show_logout_reminder']['lastHit'], 'dateOnly');
99 99
             $ph['logout_reminder_msg'] = str_replace('[+date+]', $date, $_lang['logout_reminder_msg']);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     }
102 102
     $ph['show_logout_reminder'] = 'block';
103 103
     unset($_SESSION['show_logout_reminder']);
104
-} else {
104
+} else {
105 105
     $ph['show_logout_reminder'] = 'none';
106 106
 }
107 107
 
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
 $from[] = " us LEFT JOIN [+prefix+]active_users au ON au.sid=us.sid WHERE au.action <> '8'";
163 163
 $rs = $modx->db->select('*', $from, '', 'username ASC, au.sid ASC');
164 164
 
165
-if ($modx->db->getRecordCount($rs) < 1) {
165
+if ($modx->db->getRecordCount($rs) < 1) {
166 166
     $html = '<p>[%no_active_users_found%]</p>';
167
-} else {
167
+} else {
168 168
     include_once(MODX_MANAGER_PATH . 'includes/actionlist.inc.php');
169 169
     $now = $_SERVER['REQUEST_TIME'] + $server_offset_time;
170 170
     $ph['now'] = strftime('%H:%M:%S', $now);
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     $userList = array();
191 191
     $userCount = array();
192 192
     // Create userlist with session-count first before output
193
-    while ($activeusers = $modx->db->getRow($rs)) {
193
+    while ($activeusers = $modx->db->getRow($rs)) {
194 194
         $userCount[$activeusers['internalKey']] = isset($userCount[$activeusers['internalKey']]) ? $userCount[$activeusers['internalKey']] + 1 : 1;
195 195
 
196 196
         $idle = $activeusers['lasthit'] < $timetocheck ? ' class="userIdle"' : '';
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             $currentaction
209 209
         );
210 210
     }
211
-    foreach ($userList as $params) {
211
+    foreach ($userList as $params) {
212 212
         $params[1] = $userCount[$params[4]] > 1 ? ' class="userMultipleSessions"' : '';
213 213
         $html .= "\n\t\t" . vsprintf('<tr%s><td><strong%s>%s</strong></td><td>%s%s</td><td>%s</td><td>%s</td><td>%s</td></tr>', $params);
214 214
     }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 
254 254
 // invoke event OnManagerWelcomePrerender
255 255
 $evtOut = $modx->invokeEvent('OnManagerWelcomePrerender');
256
-if (is_array($evtOut)) {
256
+if (is_array($evtOut)) {
257 257
     $output = implode('', $evtOut);
258 258
     $ph['OnManagerWelcomePrerender'] = $output;
259 259
 }
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     'body' => '<div class="widget-stage">[+RecentInfo+]</div>',
359 359
     'hide'=>'0'
360 360
 );
361
-if ($modx->config['rss_url_news']) {
361
+if ($modx->config['rss_url_news']) {
362 362
     $widgets['news'] = array(
363 363
         'menuindex' => '40',
364 364
         'id' => 'news',
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
         'hide'=>'0'
370 370
     );
371 371
 }
372
-if ($modx->config['rss_url_security']) {
372
+if ($modx->config['rss_url_security']) {
373 373
     $widgets['security'] = array(
374 374
         'menuindex' => '50',
375 375
         'id' => 'security',
@@ -383,29 +383,29 @@  discard block
 block discarded – undo
383 383
 
384 384
 // invoke OnManagerWelcomeHome event
385 385
 $sitewidgets = $modx->invokeEvent("OnManagerWelcomeHome", array('widgets' => $widgets));
386
-if (is_array($sitewidgets)) {
386
+if (is_array($sitewidgets)) {
387 387
     $newwidgets = array();
388
-    foreach ($sitewidgets as $widget) {
388
+    foreach ($sitewidgets as $widget) {
389 389
         $newwidgets = array_merge($newwidgets, unserialize($widget));
390 390
     }
391 391
     $widgets = (count($newwidgets) > 0) ? $newwidgets : $widgets;
392 392
 }
393 393
 
394
-usort($widgets, function ($a, $b) {
394
+usort($widgets, function ($a, $b){
395 395
     return $a['menuindex'] - $b['menuindex'];
396 396
 });
397 397
 
398 398
 $tpl = getTplWidget();
399 399
 $output = '';
400
-foreach ($widgets as $widget) {
401
-    if ($widget['hide'] != '1') {
400
+foreach ($widgets as $widget) {
401
+    if ($widget['hide'] != '1') {
402 402
         $output .= $modx->parseText($tpl, $widget);
403 403
     }
404 404
 }
405 405
 $ph['widgets'] = $output;
406 406
 
407 407
 // load template
408
-if (!isset($modx->config['manager_welcome_tpl']) || empty($modx->config['manager_welcome_tpl'])) {
408
+if (!isset($modx->config['manager_welcome_tpl']) || empty($modx->config['manager_welcome_tpl'])) {
409 409
     $modx->config['manager_welcome_tpl'] = MODX_MANAGER_PATH . 'media/style/common/welcome.tpl';
410 410
 }
411 411
 
@@ -413,26 +413,27 @@  discard block
 block discarded – undo
413 413
 $target = str_replace('[+base_path+]', MODX_BASE_PATH, $target);
414 414
 $target = $modx->mergeSettingsContent($target);
415 415
 
416
-if (substr($target, 0, 1) === '@') {
417
-    if (substr($target, 0, 6) === '@CHUNK') {
416
+if (substr($target, 0, 1) === '@') {
417
+    if (substr($target, 0, 6) === '@CHUNK') {
418 418
         $content = $modx->getChunk(trim(substr($target, 7)));
419
-    } elseif (substr($target, 0, 5) === '@FILE') {
419
+    } elseif (substr($target, 0, 5) === '@FILE') {
420 420
         $content = file_get_contents(trim(substr($target, 6)));
421
-    } else {
421
+    } else {
422 422
         $content = '';
423 423
     }
424
-} else {
424
+} else {
425 425
     $chunk = $modx->getChunk($target);
426
-    if ($chunk !== false && !empty($chunk)) {
426
+    if ($chunk !== false && !empty($chunk)) {
427 427
         $content = $chunk;
428
-    } elseif (is_file(MODX_BASE_PATH . $target)) {
428
+    } elseif (is_file(MODX_BASE_PATH . $target)) {
429 429
         $content = file_get_contents(MODX_BASE_PATH . $target);
430
-    } elseif (is_file(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/welcome.tpl')) {
430
+    } elseif (is_file(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/welcome.tpl')) {
431 431
         $content = file_get_contents(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/welcome.tpl');
432
-    } elseif (is_file(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/html/welcome.html')) { // ClipperCMS compatible
432
+    } elseif (is_file(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/html/welcome.html')) {
433
+// ClipperCMS compatible
433 434
 
434 435
         $content = file_get_contents(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/html/welcome.html');
435
-    } else {
436
+    } else {
436 437
         $content = file_get_contents(MODX_MANAGER_PATH . 'media/style/common/welcome.tpl');
437 438
     }
438 439
 }
@@ -441,7 +442,7 @@  discard block
 block discarded – undo
441 442
 $content = $modx->mergeConditionalTagsContent($content);
442 443
 $content = $modx->mergeSettingsContent($content);
443 444
 $content = $modx->parseText($content, $ph);
444
-if (strpos($content, '[+') !== false) {
445
+if (strpos($content, '[+') !== false) {
445 446
     $modx->toPlaceholders($ph);
446 447
     $content = $modx->mergePlaceholderContent($content);
447 448
 }
@@ -450,7 +451,7 @@  discard block
 block discarded – undo
450 451
 $content = $modx->parseText($content, $_style, '[&', '&]');
451 452
 $content = $modx->cleanUpMODXTags($content); //cleanup
452 453
 
453
-if ($js = $modx->getRegisteredClientScripts()) {
454
+if ($js = $modx->getRegisteredClientScripts()) {
454 455
     $content .= $js;
455 456
 }
456 457
 
@@ -460,8 +461,9 @@  discard block
 block discarded – undo
460 461
 //	<a href="javascript:;" class="setting"><i class="fa fa-cog"></i></a>
461 462
 //  <a href="javascript:;" class="closed"><i class="fa fa-close"></i></a>
462 463
 //</span>
463
-function getTplWidget()
464
-{ // recent document info
464
+function getTplWidget()
465
+{
466
+// recent document info
465 467
     return '
466 468
 		<div class="[+cols+]" id="[+id+]">
467 469
 			<div class="card"[+cardAttr+]>
@@ -472,8 +474,9 @@  discard block
 block discarded – undo
472 474
 ';
473 475
 }
474 476
 
475
-function getRecentInfo()
476
-{ // recent document info
477
+function getRecentInfo()
478
+{
479
+// recent document info
477 480
     $modx = evolutionCMS();
478 481
 
479 482
     $modx->addSnippet('recentInfoList', 'getRecentInfoList');
@@ -499,13 +502,13 @@  discard block
 block discarded – undo
499 502
     return $html;
500 503
 }
501 504
 
502
-function getRecentInfoList()
503
-{
505
+function getRecentInfoList()
506
+{
504 507
     $modx = evolutionCMS();
505 508
 
506 509
     $rs = $modx->db->select('*', '[+prefix+]site_content', '', 'editedon DESC', 10);
507 510
 
508
-    if ($modx->db->getRecordCount($rs) < 1) {
511
+    if ($modx->db->getRecordCount($rs) < 1) {
509 512
         return '<tr><td>[%no_activity_message%]</td></tr>';
510 513
     }
511 514
 
@@ -515,22 +518,22 @@  discard block
 block discarded – undo
515 518
     $btntpl['preview_btn'] = '<a [+preview_disabled+]" title="[%preview_resource%]" target="_blank" href="../index.php?&amp;id=[+id+]"><i class="fa fa-eye fa-fw"></i></a> ';
516 519
 
517 520
     $output = array();
518
-    while ($ph = $modx->db->getRow($rs)) {
521
+    while ($ph = $modx->db->getRow($rs)) {
519 522
         $docid = $ph['id'];
520 523
         $_ = $modx->getUserInfo($ph['editedby']);
521 524
         $ph['username'] = $_['username'];
522 525
 
523
-        if ($ph['deleted'] == 1) {
526
+        if ($ph['deleted'] == 1) {
524 527
             $ph['status'] = 'deleted text-danger';
525
-        } elseif ($ph['published'] == 0) {
528
+        } elseif ($ph['published'] == 0) {
526 529
             $ph['status'] = 'unpublished font-italic text-muted';
527
-        } else {
530
+        } else {
528 531
             $ph['status'] = 'published';
529 532
         }
530 533
 
531
-        if ($modx->hasPermission('edit_document')) {
534
+        if ($modx->hasPermission('edit_document')) {
532 535
             $ph['edit_btn'] = str_replace('[+id+]', $docid, $btntpl['edit']);
533
-        } else {
536
+        } else {
534 537
             $ph['edit_btn'] = '';
535 538
         }
536 539
 
@@ -543,40 +546,40 @@  discard block
 block discarded – undo
543 546
             $preview_disabled
544 547
         ), $btntpl['preview_btn']);
545 548
 
546
-        if ($modx->hasPermission('delete_document')) {
547
-            if ($ph['deleted'] == 0) {
549
+        if ($modx->hasPermission('delete_document')) {
550
+            if ($ph['deleted'] == 0) {
548 551
                 $delete_btn = '<a onclick="return confirm(\'[%confirm_delete_record%]\')" title="[%delete_resource%]" href="index.php?a=6&amp;id=[+id+]" target="main"><i class="fa fa-trash fa-fw"></i></a> ';
549
-            } else {
552
+            } else {
550 553
                 $delete_btn = '<a onclick="return confirm(\'[%confirm_undelete%]\')" title="[%undelete_resource%]" href="index.php?a=63&amp;id=[+id+]" target="main"><i class="fa fa-arrow-circle-o-up fa-fw"></i></a> ';
551 554
             }
552 555
             $ph['delete_btn'] = str_replace('[+id+]', $docid, $delete_btn);
553
-        } else {
556
+        } else {
554 557
             $ph['delete_btn'] = '';
555 558
         }
556 559
 
557
-        if ($ph['deleted'] == 1 && $ph['published'] == 0) {
560
+        if ($ph['deleted'] == 1 && $ph['published'] == 0) {
558 561
             $publish_btn = '<a class="disabled" title="[%publish_resource%]" href="index.php?a=61&amp;id=[+id+]" target="main"><i class="fa fa-arrow-up fa-fw"></i></a> ';
559
-        } elseif ($ph['deleted'] == 1 && $ph['published'] == 1) {
562
+        } elseif ($ph['deleted'] == 1 && $ph['published'] == 1) {
560 563
             $publish_btn = '<a class="disabled" title="[%publish_resource%]" href="index.php?a=61&amp;id=[+id+]" target="main"><i class="fa fa-arrow-down fa-fw"></i></a> ';
561
-        } elseif ($ph['deleted'] == 0 && $ph['published'] == 0) {
564
+        } elseif ($ph['deleted'] == 0 && $ph['published'] == 0) {
562 565
             $publish_btn = '<a title="[%publish_resource%]" href="index.php?a=61&amp;id=[+id+]" target="main"><i class="fa fa-arrow-up fa-fw"></i></a> ';
563
-        } else {
566
+        } else {
564 567
             $publish_btn = '<a title="[%unpublish_resource%]" href="index.php?a=62&amp;id=[+id+]" target="main"><i class="fa fa-arrow-down fa-fw"></i></a> ';
565 568
         }
566 569
         $ph['publish_btn'] = str_replace('[+id+]', $docid, $publish_btn);
567 570
 
568 571
         $ph['info_btn'] = str_replace('[+id+]', $docid, '<a title="[%resource_overview%]" data-toggle="collapse" data-target=".collapse[+id+]"><i class="fa fa-info fa-fw"></i></a>');
569 572
 
570
-        if ($ph['longtitle'] == '') {
573
+        if ($ph['longtitle'] == '') {
571 574
             $ph['longtitle'] = '(<i>[%not_set%]</i>)';
572 575
         }
573
-        if ($ph['description'] == '') {
576
+        if ($ph['description'] == '') {
574 577
             $ph['description'] = '(<i>[%not_set%]</i>)';
575 578
         }
576
-        if ($ph['introtext'] == '') {
579
+        if ($ph['introtext'] == '') {
577 580
             $ph['introtext'] = '(<i>[%not_set%]</i>)';
578 581
         }
579
-        if ($ph['alias'] == '') {
582
+        if ($ph['alias'] == '') {
580 583
             $ph['alias'] = '(<i>[%not_set%]</i>)';
581 584
         }
582 585
 
@@ -585,8 +588,8 @@  discard block
 block discarded – undo
585 588
     return implode("\n", $output);
586 589
 }
587 590
 
588
-function getRecentInfoRowTpl()
589
-{
591
+function getRecentInfoRowTpl()
592
+{
590 593
     $tpl = '
591 594
 						<tr>
592 595
 							<td data-toggle="collapse" data-target=".collapse[+id+]" class="text-right"><span class="label label-info">[+id+]</span></td>
@@ -615,13 +618,13 @@  discard block
 block discarded – undo
615 618
 }
616 619
 
617 620
 // setup icons
618
-function wrapIcon($i, $action)
619
-{
621
+function wrapIcon($i, $action)
622
+{
620 623
     return sprintf('<a href="index.php?a=%s" target="main"><span class="wm_button" style="border:0">%s</span></a>', $action, $i);
621 624
 }
622 625
 
623
-function getStartUpScript()
624
-{
626
+function getStartUpScript()
627
+{
625 628
     $script = '
626 629
         <script type="text/javascript">
627 630
         function hideConfigCheckWarning(key) {
Please login to merge, or discard this patch.
manager/processors/login.processor.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -393,7 +393,8 @@
 block discarded – undo
393 393
     $failedlogins += 1;
394 394
 
395 395
     $fields = array('failedlogincount' => $failedlogins);
396
-    if ($failedlogins >= $failed_allowed) { //block user for too many fail attempts
396
+    if ($failedlogins >= $failed_allowed) {
397
+//block user for too many fail attempts
397 398
 
398 399
         $fields['blockeduntil'] = time() + ($blocked_minutes * 60);
399 400
     }
Please login to merge, or discard this patch.
manager/includes/template.parser.class.inc.php 1 patch
Braces   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -7,55 +7,55 @@  discard block
 block discarded – undo
7 7
  *
8 8
  */
9 9
 
10
-class TemplateParser
11
-{
10
+class TemplateParser
11
+{
12 12
 
13 13
     /**
14 14
      * @param array $config [action, tabs, toArray]
15 15
      * @param array $data
16 16
      * @return string
17 17
      */
18
-    public function output($config = array(), $data = array())
19
-    {
18
+    public function output($config = array(), $data = array())
19
+    {
20 20
         $modx = evolutionCMS();
21 21
 
22 22
         $output = '';
23 23
         $action = !empty($config['action']) ? $config['action'] : (!empty($_REQUEST['a']) ? $_REQUEST['a'] : '');
24 24
         $tab = isset($config['tab']) ? ' AND tab IN(' . $config['tab'] . ')' : '';
25 25
 
26
-        if ($action) {
26
+        if ($action) {
27 27
             $sql = $modx->db->query('SELECT t1.*, IF(t1.alias=\'\',t1.name,t1.alias) AS alias, t2.category AS category_name
28 28
 			FROM ' . $modx->getFullTableName('system_templates') . ' AS t1
29 29
 			INNER JOIN ' . $modx->getFullTableName('categories') . ' AS t2 ON t2.id=t1.category
30 30
 			WHERE t1.action IN(' . $action . ') ' . $tab . '
31 31
 			ORDER BY t1.tab ASC, t1.rank ASC');
32 32
 
33
-            if ($modx->db->getRecordCount($sql)) {
33
+            if ($modx->db->getRecordCount($sql)) {
34 34
                 $tabs = array();
35
-                while ($row = $modx->db->getRow($sql)) {
36
-                    if (!$row['value'] && !empty($data[$row['name']])) {
35
+                while ($row = $modx->db->getRow($sql)) {
36
+                    if (!$row['value'] && !empty($data[$row['name']])) {
37 37
                         $row['value'] = $data[$row['name']];
38 38
                     }
39 39
                     $tabs[$row['tab']]['category_name'] = $row['category_name'];
40 40
                     $tabs[$row['tab']][$row['name']] = TemplateParser::render($row);
41 41
                 }
42 42
 
43
-                if (!empty($config['toArray'])) {
43
+                if (!empty($config['toArray'])) {
44 44
                     $output = $tabs;
45
-                } else {
45
+                } else {
46 46
                     $output .= '<div class="tab-pane" id="pane_' . $action . '">';
47 47
                     $output .= '
48 48
 					<script type="text/javascript">
49 49
 						var pane_' . $action . ' = new WebFXTabPane(document.getElementById("pane_' . $action . '"), ' . ($modx->config['remember_last_tab'] == 1 ? 'true' : 'false') . ');
50 50
 					</script>';
51 51
 
52
-                    foreach ($tabs as $idTab => $tab) {
52
+                    foreach ($tabs as $idTab => $tab) {
53 53
                         $output .= '<div class="tab-page" id="tab_' . $action . '_' . $idTab . '">';
54 54
                         $output .= '
55 55
 						<h2 class="tab">' . (!empty($config['tabs'][$idTab]) ? $config['tabs'][$idTab] : $tab['category_name']) . '</h2>
56 56
 						<script type="text/javascript">pane_' . $action . '.addTabPage(document.getElementById("tab_' . $action . '_' . $idTab . '"));</script>';
57 57
                         unset($tab['category_name']);
58
-                        foreach ($tab as $item) {
58
+                        foreach ($tab as $item) {
59 59
                             $output .= $item;
60 60
                         }
61 61
                         $output .= '</div>';
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
      * @param array $data
73 73
      * @return string
74 74
      */
75
-    private function render($data)
76
-    {
75
+    private function render($data)
76
+    {
77 77
         $modx = evolutionCMS();
78 78
         global $_lang, $_country_lang;
79 79
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $output = '';
85 85
         $output .= '<div class="form-group row">';
86 86
 
87
-        switch ($data['type']) {
87
+        switch ($data['type']) {
88 88
 
89 89
             case 'text':
90 90
                 $output .= '<label class="col-sm-3" for="[+name+]">[+lang.name+]</label>
@@ -118,16 +118,16 @@  discard block
 block discarded – undo
118 118
                 $output .= '<label class="col-sm-3" for="[+name+]">[+lang.name+]</label>';
119 119
                 $output .= '<div class="col-sm-7">';
120 120
                 $output .= '<select name="[+name+]" class="form-control" id="[+name+]" onChange="documentDirty=true;">';
121
-                if ($data['name'] == 'country' && isset($_country_lang)) {
121
+                if ($data['name'] == 'country' && isset($_country_lang)) {
122 122
                     $chosenCountry = isset($_POST['country']) ? $_POST['country'] : $data['country'];
123 123
                     $output .= '<option value=""' . (!isset($chosenCountry) ? ' selected' : '') . '>&nbsp;</option>';
124
-                    foreach ($_country_lang as $key => $value) {
124
+                    foreach ($_country_lang as $key => $value) {
125 125
                         $output .= '<option value="' . $key . '"' . (isset($chosenCountry) && $chosenCountry == $key ? ' selected' : '') . '>' . $value . '</option>';
126 126
                     }
127
-                } else {
128
-                    if ($data['elements']) {
127
+                } else {
128
+                    if ($data['elements']) {
129 129
                         $elements = explode('||', $data['elements']);
130
-                        foreach ($elements as $key => $value) {
130
+                        foreach ($elements as $key => $value) {
131 131
                             $value = explode('==', $value);
132 132
                             $output .= '<option value="' . $value[1] . '">' . (isset($_lang[$value[0]]) ? $_lang[$value[0]] : $value[0]) . '</option>';
133 133
                         }
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
                 $output .= '<label class="col-sm-3" for="[+name+]">[+lang.name+]</label>';
144 144
                 $output .= '<div class="col-sm-7">';
145 145
                 $output .= '<input type="checkbox" name="[+name+]" class="form-control" id="[+name+]" value="[+value+]" onChange="documentDirty=true;"[+readonly+] />';
146
-                if ($data['elements']) {
146
+                if ($data['elements']) {
147 147
                     $elements = explode('||', $data['elements']);
148
-                    foreach ($elements as $key => $value) {
148
+                    foreach ($elements as $key => $value) {
149 149
                         $value = explode('==', $value);
150 150
                         $output .= '<br /><input type="checkbox" name="' . $value[0] . '" class="form-control" id="' . $value[0] . '" value="' . $value[1] . '" onChange="documentDirty=true;"[+readonly+] /> ' . (isset($_lang[$value[0]]) ? $_lang[$value[0]] : $value[0]);
151 151
                     }
@@ -159,9 +159,9 @@  discard block
 block discarded – undo
159 159
                 $output .= '<label class="col-sm-3" for="[+name+]">[+lang.name+]</label>';
160 160
                 $output .= '<div class="col-sm-7">';
161 161
                 $output .= '<input type="radio" name="[+name+]" class="form-control" id="[+name+]" value="[+value+]" onChange="documentDirty=true;"[+readonly+] />';
162
-                if ($data['elements']) {
162
+                if ($data['elements']) {
163 163
                     $elements = explode('||', $data['elements']);
164
-                    foreach ($elements as $key => $value) {
164
+                    foreach ($elements as $key => $value) {
165 165
                         $value = explode('==', $value);
166 166
                         $output .= '<br /><input type="radio" name="[+name+]" class="form-control" id="[+name+]_' . $key . '" value="' . $value[1] . '" onChange="documentDirty=true;"[+readonly+] /> ' . (isset($_lang[$value[0]]) ? $_lang[$value[0]] : $value[0]);
167 167
                     }
Please login to merge, or discard this patch.
manager/includes/document.parser.class.inc.php 1 patch
Braces   +32 added lines, -17 removed lines patch added patch discarded remove patch
@@ -721,13 +721,15 @@  discard block
 block discarded – undo
721 721
             $this->virtualDir = '';
722 722
         }
723 723
 
724
-        if (preg_match('@^[1-9][0-9]*$@', $q) && !isset($this->documentListing[$q])) { /* we got an ID returned, check to make sure it's not an alias */
724
+        if (preg_match('@^[1-9][0-9]*$@', $q) && !isset($this->documentListing[$q])) {
725
+/* we got an ID returned, check to make sure it's not an alias */
725 726
             /* FS#476 and FS#308: check that id is valid in terms of virtualDir structure */
726 727
             if ($this->config['use_alias_path'] == 1) {
727 728
                 if (($this->virtualDir != '' && !isset($this->documentListing[$this->virtualDir . '/' . $q]) || ($this->virtualDir == '' && !isset($this->documentListing[$q]))) && (($this->virtualDir != '' && isset($this->documentListing[$this->virtualDir]) && in_array($q, $this->getChildIds($this->documentListing[$this->virtualDir], 1))) || ($this->virtualDir == '' && in_array($q, $this->getChildIds(0, 1))))) {
728 729
                     $this->documentMethod = 'id';
729 730
                     return $q;
730
-                } else { /* not a valid id in terms of virtualDir, treat as alias */
731
+                } else {
732
+/* not a valid id in terms of virtualDir, treat as alias */
731 733
                     $this->documentMethod = 'alias';
732 734
                     return $q;
733 735
                 }
@@ -735,7 +737,8 @@  discard block
 block discarded – undo
735 737
                 $this->documentMethod = 'id';
736 738
                 return $q;
737 739
             }
738
-        } else { /* we didn't get an ID back, so instead we assume it's an alias */
740
+        } else {
741
+/* we didn't get an ID back, so instead we assume it's an alias */
739 742
             if ($this->config['friendly_alias_urls'] != 1) {
740 743
                 $q = $qOrig;
741 744
             }
@@ -1108,7 +1111,8 @@  discard block
 block discarded – undo
1108 1111
         $where = "pub_date <= {$timeNow} AND pub_date!=0 AND published=0";
1109 1112
         $result_pub = $this->db->select('id', '[+prefix+]site_content', $where);
1110 1113
         $this->db->update($field, '[+prefix+]site_content', $where);
1111
-        if ($this->db->getRecordCount($result_pub) >= 1) { //Event unPublished doc
1114
+        if ($this->db->getRecordCount($result_pub) >= 1) {
1115
+//Event unPublished doc
1112 1116
             while ($row_pub = $this->db->getRow($result_pub)) {
1113 1117
                 $this->invokeEvent("OnDocUnPublished", array(
1114 1118
                     "docid" => $row_pub['id']
@@ -1121,7 +1125,8 @@  discard block
 block discarded – undo
1121 1125
         $where = "unpub_date <= {$timeNow} AND unpub_date!=0 AND published=1";
1122 1126
         $result_unpub = $this->db->select('id', '[+prefix+]site_content', $where);
1123 1127
         $this->db->update($field, '[+prefix+]site_content', $where);
1124
-        if ($this->db->getRecordCount($result_unpub) >= 1) { //Event unPublished doc
1128
+        if ($this->db->getRecordCount($result_unpub) >= 1) {
1129
+//Event unPublished doc
1125 1130
             while ($row_unpub = $this->db->getRow($result_unpub)) {
1126 1131
                 $this->invokeEvent("OnDocUnPublished", array(
1127 1132
                     "docid" => $row_unpub['id']
@@ -1272,7 +1277,8 @@  discard block
 block discarded – undo
1272 1277
                         }
1273 1278
                     }
1274 1279
 
1275
-                    if (!in_array($fetch, $tags)) {  // Avoid double Matches
1280
+                    if (!in_array($fetch, $tags)) {
1281
+// Avoid double Matches
1276 1282
                         $tags[] = $fetch; // Fetch
1277 1283
                     };
1278 1284
                     $fetch = ''; // and reset
@@ -2057,7 +2063,8 @@  discard block
 block discarded – undo
2057 2063
      * @return mixed|string
2058 2064
      */
2059 2065
     public function _getSGVar($value)
2060
-    { // Get super globals
2066
+    {
2067
+// Get super globals
2061 2068
         $key = $value;
2062 2069
         $_ = $this->config['enable_filter'];
2063 2070
         $this->config['enable_filter'] = 1;
@@ -2462,7 +2469,8 @@  discard block
 block discarded – undo
2462 2469
         if ($this->config['friendly_urls'] == 1) {
2463 2470
             $aliases = array();
2464 2471
             if (is_array($this->documentListing)) {
2465
-                foreach ($this->documentListing as $path => $docid) { // This is big Loop on large site!
2472
+                foreach ($this->documentListing as $path => $docid) {
2473
+// This is big Loop on large site!
2466 2474
                     $aliases[$docid] = $path;
2467 2475
                     $isfolder[$docid] = $this->aliasListing[$docid]['isfolder'];
2468 2476
                 }
@@ -2495,7 +2503,7 @@  discard block
 block discarded – undo
2495 2503
             $isfriendly = ($this->config['friendly_alias_urls'] == 1 ? 1 : 0);
2496 2504
             $pref = $this->config['friendly_url_prefix'];
2497 2505
             $suff = $this->config['friendly_url_suffix'];
2498
-            $documentSource = preg_replace_callback($in, function ($m) use ($aliases, $isfolder, $isfriendly, $pref, $suff) {
2506
+            $documentSource = preg_replace_callback($in, function ($m) use ($aliases, $isfolder, $isfriendly, $pref, $suff){
2499 2507
                 global $modx;
2500 2508
                 $thealias = $aliases[$m[1]];
2501 2509
                 $thefolder = $isfolder[$m[1]];
@@ -4256,7 +4264,8 @@  discard block
 block discarded – undo
4256 4264
         if (isset($this->snippetCache[$snippetName])) {
4257 4265
             $snippet = $this->snippetCache[$snippetName];
4258 4266
             $properties = !empty($this->snippetCache[$snippetName . "Props"]) ? $this->snippetCache[$snippetName . "Props"] : '';
4259
-        } else { // not in cache so let's check the db
4267
+        } else {
4268
+// not in cache so let's check the db
4260 4269
             $sql = "SELECT ss.`name`, ss.`snippet`, ss.`properties`, sm.properties as `sharedproperties` FROM " . $this->getFullTableName("site_snippets") . " as ss LEFT JOIN " . $this->getFullTableName('site_modules') . " as sm on sm.guid=ss.moduleguid WHERE ss.`name`='" . $this->db->escape($snippetName) . "'  AND ss.disabled=0;";
4261 4270
             $result = $this->db->query($sql);
4262 4271
             if ($this->db->getRecordCount($result) == 1) {
@@ -5234,10 +5243,12 @@  discard block
 block discarded – undo
5234 5243
             return '';
5235 5244
         } // nothing to register
5236 5245
         if (!is_array($options)) {
5237
-            if (is_bool($options)) {  // backward compatibility with old plaintext parameter
5246
+            if (is_bool($options)) {
5247
+// backward compatibility with old plaintext parameter
5238 5248
 
5239 5249
                 $options = array('plaintext' => $options);
5240
-            } elseif (is_string($options)) { // Also allow script name as 2nd param
5250
+            } elseif (is_string($options)) {
5251
+// Also allow script name as 2nd param
5241 5252
 
5242 5253
                 $options = array('name' => $options);
5243 5254
             } else {
@@ -5251,7 +5262,8 @@  discard block
 block discarded – undo
5251 5262
         unset($overwritepos); // probably unnecessary--just making sure
5252 5263
 
5253 5264
         $useThisVer = true;
5254
-        if (isset($this->loadedjscripts[$key])) { // a matching script was found
5265
+        if (isset($this->loadedjscripts[$key])) {
5266
+// a matching script was found
5255 5267
             // if existing script is a startup script, make sure the candidate is also a startup script
5256 5268
             if ($this->loadedjscripts[$key]['startup']) {
5257 5269
                 $startup = true;
@@ -5271,7 +5283,8 @@  discard block
 block discarded – undo
5271 5283
                     // overwrite the old script (the position may be important for dependent scripts)
5272 5284
                     $overwritepos = $this->loadedjscripts[$key]['pos'];
5273 5285
                 }
5274
-            } else { // Use the original version
5286
+            } else {
5287
+// Use the original version
5275 5288
                 if ($startup == true && $this->loadedjscripts[$key]['startup'] == false) {
5276 5289
                     // need to move the exisiting script to the head
5277 5290
                     $version = $this->loadedjscripts[$key][$version];
@@ -5396,7 +5409,8 @@  discard block
 block discarded – undo
5396 5409
         }
5397 5410
 
5398 5411
         $results = null;
5399
-        foreach ($this->pluginEvent[$evtName] as $pluginName) { // start for loop
5412
+        foreach ($this->pluginEvent[$evtName] as $pluginName) {
5413
+// start for loop
5400 5414
             if ($this->dumpPlugins) {
5401 5415
                 $eventtime = $this->getMicroTime();
5402 5416
             }
@@ -5939,7 +5953,8 @@  discard block
 block discarded – undo
5939 5953
      * @return bool
5940 5954
      */
5941 5955
     public function isSafeCode($phpcode = '', $safe_functions = '')
5942
-    { // return true or false
5956
+    {
5957
+// return true or false
5943 5958
         if ($safe_functions == '') {
5944 5959
             return false;
5945 5960
         }
@@ -6351,7 +6366,7 @@  discard block
 block discarded – undo
6351 6366
             $args = array_pad(array(), $_, '$var');
6352 6367
             $args = implode(", ", $args);
6353 6368
             $modx = &$this;
6354
-            $args = preg_replace_callback('/\$var/', function () use ($modx, &$tmp, $val) {
6369
+            $args = preg_replace_callback('/\$var/', function () use ($modx, &$tmp, $val){
6355 6370
                 $arg = $val['args'][$tmp - 1];
6356 6371
                 switch (true) {
6357 6372
                     case is_null($arg): {
Please login to merge, or discard this patch.
manager/includes/extenders/modifiers.class.inc.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,7 +194,8 @@  discard block
 block discarded – undo
194 194
             $c = substr($modifiers, 0, 1);
195 195
             $modifiers = substr($modifiers, 1);
196 196
 
197
-            if ($c===':' && preg_match('@^(!?[<>=]{1,2})@', $modifiers, $match)) { // :=, :!=, :<=, :>=, :!<=, :!>=
197
+            if ($c===':' && preg_match('@^(!?[<>=]{1,2})@', $modifiers, $match)) {
198
+// :=, :!=, :<=, :>=, :!<=, :!>=
198 199
                 $c = substr($modifiers, strlen($match[1]), 1);
199 200
                 $debuginfo = "#i=0 #c=[{$c}] #m=[{$modifiers}]";
200 201
                 if ($c==='(') {
@@ -209,7 +210,8 @@  discard block
 block discarded – undo
209 210
 
210 211
                 $result[]=array('cmd'=>trim($match[1]),'opt'=>$opt,'debuginfo'=>$debuginfo);
211 212
                 $cmd = '';
212
-            } elseif (in_array($c, array('+','-','*','/')) && preg_match('@^[0-9]+@', $modifiers, $match)) { // :+3, :-3, :*3 ...
213
+            } elseif (in_array($c, array('+','-','*','/')) && preg_match('@^[0-9]+@', $modifiers, $match)) {
214
+// :+3, :-3, :*3 ...
213 215
                 $modifiers = substr($modifiers, strlen($match[0]));
214 216
                 $result[]=array('cmd'=>'math','opt'=>'%s' . $c . $match[0]);
215 217
                 $cmd = '';
Please login to merge, or discard this patch.
manager/includes/extenders/dbapi.mysqli.class.inc.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -373,7 +373,8 @@
 block discarded – undo
373 373
      * @return bool|mixed|mysqli_result
374 374
      */
375 375
     public function save($fields, $table, $where = '')
376
-    { // This is similar to "replace into table".
376
+    {
377
+// This is similar to "replace into table".
377 378
 
378 379
         if ($where === '') {
379 380
             $mode = 'insert';
Please login to merge, or discard this patch.
manager/includes/extenders/modifiers/mdf_wordwrap.inc.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2
-return preg_replace_callback("~(\b\w+\b)~", function ($m) use ($wrapat) {
2
+return preg_replace_callback("~(\b\w+\b)~", function ($m) use ($wrapat){
3 3
     return wordwrap($m[1], $wrapat, ' ', 1);
4 4
 }, $value);
Please login to merge, or discard this patch.
manager/includes/tmplvars.format.inc.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -363,7 +363,8 @@
 block discarded – undo
363 363
  * @return array|string
364 364
  */
365 365
 function parseInput($src, $delim = "||", $type = "string", $columns = true)
366
-{ // type can be: string, array
366
+{
367
+// type can be: string, array
367 368
     $modx = evolutionCMS();
368 369
     if ($modx->db->isResult($src)) {
369 370
         // must be a recordset
Please login to merge, or discard this patch.