Completed
Push — master ( a21b67...ec1681 )
by Michael
02:43
created
include/update_function.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,22 +33,22 @@  discard block
 block discarded – undo
33 33
 
34 34
     //----------------------------------------------------------
35 35
     // Create eXtCal upload directory
36
-    $indexFile = __DIR__ . '/index.html';
36
+    $indexFile = __DIR__.'/index.html';
37 37
 
38
-    $dir = XOOPS_ROOT_PATH . '/uploads/extcal';
38
+    $dir = XOOPS_ROOT_PATH.'/uploads/extcal';
39 39
     if (!is_dir($dir)) {
40 40
         mkdir($dir, 0777);
41
-        copy($indexFile, $dir . '/index.html');
41
+        copy($indexFile, $dir.'/index.html');
42 42
     }
43 43
 
44
-    $dir = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement';
44
+    $dir = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement';
45 45
     if (!is_dir($dir)) {
46 46
         mkdir($dir, 0777);
47
-        copy($indexFile, $dir . '/index.html');
47
+        copy($indexFile, $dir.'/index.html');
48 48
     }
49 49
     //------------------------------------------------------------
50 50
 
51
-    $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/';
51
+    $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/';
52 52
     $cls = 'extcal_%1$s';
53 53
 
54 54
     $version = array(
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     foreach ($version as $key => $val) {
68 68
         if ($previousVersion < $val) {
69 69
             $name = sprintf($cls, $key);
70
-            $f    = $fld . $name . '.php';
70
+            $f    = $fld.$name.'.php';
71 71
             //ext_echo ("<hr>{$f}<hr>");
72 72
             if (is_readable($f)) {
73 73
                 echo "mise à jour version : {$key} = {$val}<br>";
Please login to merge, or discard this patch.
view_calendar-month.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
13 13
 /* ========================================================================== */
14 14
 
15 15
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     'cat'          => $cat,
32 32
     'externalKeys' => 'cat_id',
33 33
 );
34
-$events   = $eventHandler->getEventsOnPeriode($criteres);
34
+$events = $eventHandler->getEventsOnPeriode($criteres);
35 35
 /**********************************************************************/
36 36
 
37 37
 // Calculating timestamp for the begin and the end of the month
@@ -128,21 +128,21 @@  discard block
 block discarded – undo
128 128
 // Making navig data
129 129
 $navig = array(
130 130
     'prev' => array(
131
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
131
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
132 132
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
133 133
     ),
134 134
     'this' => array(
135
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
135
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
136 136
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
137 137
     ),
138 138
     'next' => array(
139
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
139
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
140 140
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
141 141
     ),
142 142
 );
143 143
 
144 144
 // Title of the page
145
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
145
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
146 146
 
147 147
 // Assigning navig data to the template
148 148
 $xoopsTpl->assign('navig', $navig);
@@ -182,4 +182,4 @@  discard block
 block discarded – undo
182 182
 $xoopsTpl->assign('lang', $lang);
183 183
 $xoopsTpl->assign('view', 'calmonth');
184 184
 
185
-include XOOPS_ROOT_PATH . '/footer.php';
185
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
rss.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
5
-require_once __DIR__ . '/header.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5
+require_once __DIR__.'/header.php';
6 6
 
7
-require_once XOOPS_ROOT_PATH . '/class/template.php';
7
+require_once XOOPS_ROOT_PATH.'/class/template.php';
8 8
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
9 9
 if (!isset($_GET['cat'])) {
10 10
     $cat = 0;
11 11
 } else {
12
-    $cat = (int)$_GET['cat'];
12
+    $cat = (int) $_GET['cat'];
13 13
 }
14 14
 if (function_exists('mb_http_output')) {
15 15
     mb_http_output('pass');
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     $events = $eventHandler->getUpcommingEvent($xoopsModuleConfig['rss_nb_event'], $cat);
23 23
     if (is_array($events)) {
24 24
         $tpl->assign('channel_title', xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)));
25
-        $tpl->assign('channel_link', XOOPS_URL . '/');
25
+        $tpl->assign('channel_link', XOOPS_URL.'/');
26 26
         $tpl->assign('channel_desc', xoops_utf8_encode(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES)));
27 27
         $tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss'));
28 28
         $tpl->assign('channel_webmaster', $xoopsConfig['adminmail']);
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
         $tpl->assign('channel_category', 'Event');
31 31
         $tpl->assign('channel_generator', 'XOOPS');
32 32
         $tpl->assign('channel_language', _LANGCODE);
33
-        $tpl->assign('image_url', XOOPS_URL . '/modules/extcal/assets/images/extcal_logo.png');
33
+        $tpl->assign('image_url', XOOPS_URL.'/modules/extcal/assets/images/extcal_logo.png');
34 34
         $tpl->assign('image_width', 92);
35 35
         $tpl->assign('image_height', 52);
36 36
         foreach ($events as $event) {
37 37
             $tpl->append('items', array(
38 38
                 'title'       => xoops_utf8_encode(htmlspecialchars($event->getVar('event_title'), ENT_QUOTES)),
39
-                'link'        => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
40
-                'guid'        => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
39
+                'link'        => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
40
+                'guid'        => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
41 41
                 'pubdate'     => formatTimestamp($event->getVar('event_start'), 'rss'),
42 42
                 'description' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_desc'), ENT_QUOTES)),
43 43
             ));
Please login to merge, or discard this patch.
view_day.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-require_once __DIR__ . '/include/constantes.php';
20
+include __DIR__.'/../../mainfile.php';
21
+require_once __DIR__.'/include/constantes.php';
22 22
 $params                                  = array('view' => _EXTCAL_NAV_DAY, 'file' => _EXTCAL_FILE_DAY);
23 23
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
24
-require_once __DIR__ . '/header.php';
24
+require_once __DIR__.'/header.php';
25 25
 
26 26
 /* ========================================================================== */
27
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
28
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
29
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
30
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
27
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
28
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
29
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
30
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
31 31
 /* ========================================================================== */
32 32
 
33 33
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     'cat'          => $cat,
52 52
     'externalKeys' => 'cat_id',
53 53
 );
54
-$events   = $eventHandler->getEventsOnPeriode($criteres);
54
+$events = $eventHandler->getEventsOnPeriode($criteres);
55 55
 /**********************************************************************/
56 56
 $eventsArray = $events;
57 57
 
@@ -97,21 +97,21 @@  discard block
 block discarded – undo
97 97
 
98 98
 $navig = array(
99 99
     'prev' => array(
100
-        'uri'  => 'year=' . $pDayCalObj->thisYear() . '&amp;month=' . $pDayCalObj->thisMonth() . '&amp;day=' . $pDayCalObj->thisDay(),
100
+        'uri'  => 'year='.$pDayCalObj->thisYear().'&amp;month='.$pDayCalObj->thisMonth().'&amp;day='.$pDayCalObj->thisDay(),
101 101
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $pDayCalObj->getTimestamp()),
102 102
     ),
103 103
     'this' => array(
104
-        'uri'  => 'year=' . $dayCalObj->thisYear() . '&amp;month=' . $dayCalObj->thisMonth() . '&amp;day=' . $dayCalObj->thisDay(),
104
+        'uri'  => 'year='.$dayCalObj->thisYear().'&amp;month='.$dayCalObj->thisMonth().'&amp;day='.$dayCalObj->thisDay(),
105 105
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $dayCalObj->getTimestamp()),
106 106
     ),
107 107
     'next' => array(
108
-        'uri'  => 'year=' . $nDayCalObj->thisYear() . '&amp;month=' . $nDayCalObj->thisMonth() . '&amp;day=' . $nDayCalObj->thisDay(),
108
+        'uri'  => 'year='.$nDayCalObj->thisYear().'&amp;month='.$nDayCalObj->thisMonth().'&amp;day='.$nDayCalObj->thisDay(),
109 109
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $nDayCalObj->getTimestamp()),
110 110
     ),
111 111
 );
112 112
 
113 113
 // Title of the page
114
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
114
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
115 115
 
116 116
 // Assigning navig data to the template
117 117
 $xoopsTpl->assign('navig', $navig);
@@ -170,4 +170,4 @@  discard block
 block discarded – undo
170 170
 $xoopsTpl->assign('lang', $lang);
171 171
 $xoopsTpl->assign('view', 'day');
172 172
 
173
-include XOOPS_ROOT_PATH . '/footer.php';
173
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_new.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-$com_itemid = isset($_GET['com_itemid']) ? (int)$_GET['com_itemid'] : 0;
20
+include __DIR__.'/../../mainfile.php';
21
+$com_itemid = isset($_GET['com_itemid']) ? (int) $_GET['com_itemid'] : 0;
22 22
 if ($com_itemid > 0) {
23 23
     // Get link title
24
-    $sql            = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . '';
24
+    $sql            = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.'';
25 25
     $result         = $xoopsDB->query($sql);
26 26
     $row            = $xoopsDB->fetchArray($result);
27 27
     $com_replytitle = $row['event_title'];
28 28
     $com_replytext  = $row['event_desc'];
29
-    include XOOPS_ROOT_PATH . '/include/comment_new.php';
29
+    include XOOPS_ROOT_PATH.'/include/comment_new.php';
30 30
 }
Please login to merge, or discard this patch.
edit_event.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
20
+include __DIR__.'/../../mainfile.php';
21 21
 
22
-include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
23
-include __DIR__ . '/class/form/extcalform.php';
24
-include __DIR__ . '/class/perm.php';
25
-require_once __DIR__ . '/include/constantes.php';
22
+include XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
23
+include __DIR__.'/class/form/extcalform.php';
24
+include __DIR__.'/class/perm.php';
25
+require_once __DIR__.'/include/constantes.php';
26 26
 
27 27
 $permHandler = ExtcalPerm::getHandler();
28 28
 $xoopsUser   = $xoopsUser ?: null;
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 $params                                  = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT);
38 38
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
39
-include XOOPS_ROOT_PATH . '/header.php';
39
+include XOOPS_ROOT_PATH.'/header.php';
40 40
 /* ========================================================================== */
41 41
 
42 42
 // Tooltips include
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 if (!isset($_GET['event'])) {
48 48
     $eventId = 0;
49 49
 } else {
50
-    $eventId = (int)$_GET['event'];
50
+    $eventId = (int) $_GET['event'];
51 51
 }
52 52
 if (!isset($_GET['action'])) {
53 53
     $action = 'edit';
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 // Getting eXtCal object's handler
59 59
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
60 60
 
61
-include XOOPS_ROOT_PATH . '/header.php';
61
+include XOOPS_ROOT_PATH.'/header.php';
62 62
 
63 63
 // Title of the page
64 64
 $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
@@ -67,4 +67,4 @@  discard block
 block discarded – undo
67 67
 $form = $eventHandler->getEventForm('user', $action, array('event_id' => $eventId));
68 68
 $form->display();
69 69
 
70
-include XOOPS_ROOT_PATH . '/footer.php';
70
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_agenda-day.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_AGENDA_DAY, 'file' => _EXTCAL_FILE_AGENDA_DAY);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10 10
 //recupe des variables get
11
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
12
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
13
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
14
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
11
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
12
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
13
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
14
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
15 15
 /* ========================================================================== */
16 16
 
17 17
 //echo "{$params['view']}-{$year}-{$month}-{$day}<hr>extcal_{$params['view']}.html<br>";
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     'nbJours'      => $nbJours,
45 45
     'externalKeys' => 'cat_id',
46 46
 );
47
-$events   = $eventHandler->getEventsOnPeriode($criteres);
47
+$events = $eventHandler->getEventsOnPeriode($criteres);
48 48
 /**********************************************************************/
49 49
 $eventsArray = $events;
50 50
 $startDay    = mktime(0, 0, 0, $month, $day, $year);
@@ -99,21 +99,21 @@  discard block
 block discarded – undo
99 99
 
100 100
 $navig = array(
101 101
     'prev' => array(
102
-        'uri'  => 'year=' . $pDayCalObj->thisYear() . '&amp;month=' . $pDayCalObj->thisMonth() . '&amp;day=' . $pDayCalObj->thisDay(),
102
+        'uri'  => 'year='.$pDayCalObj->thisYear().'&amp;month='.$pDayCalObj->thisMonth().'&amp;day='.$pDayCalObj->thisDay(),
103 103
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $pDayCalObj->getTimestamp()),
104 104
     ),
105 105
     'this' => array(
106
-        'uri'  => 'year=' . $dayCalObj->thisYear() . '&amp;month=' . $dayCalObj->thisMonth() . '&amp;day=' . $dayCalObj->thisDay(),
106
+        'uri'  => 'year='.$dayCalObj->thisYear().'&amp;month='.$dayCalObj->thisMonth().'&amp;day='.$dayCalObj->thisDay(),
107 107
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $dayCalObj->getTimestamp()),
108 108
     ),
109 109
     'next' => array(
110
-        'uri'  => 'year=' . $nDayCalObj->thisYear() . '&amp;month=' . $nDayCalObj->thisMonth() . '&amp;day=' . $nDayCalObj->thisDay(),
110
+        'uri'  => 'year='.$nDayCalObj->thisYear().'&amp;month='.$nDayCalObj->thisMonth().'&amp;day='.$nDayCalObj->thisDay(),
111 111
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $nDayCalObj->getTimestamp()),
112 112
     ),
113 113
 );
114 114
 
115 115
 // Title of the page
116
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
116
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
117 117
 
118 118
 // Assigning navig data to the template
119 119
 $xoopsTpl->assign('navig', $navig);
@@ -154,4 +154,4 @@  discard block
 block discarded – undo
154 154
 $xoopsTpl->assign('lang', $lang);
155 155
 $xoopsTpl->assign('view', 'agendaday');
156 156
 
157
-include XOOPS_ROOT_PATH . '/footer.php';
157
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_search.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
5
-$params                                  = array(
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5
+$params = array(
6 6
     'view' => _EXTCAL_NAV_SEARCH,
7 7
     'file' => _EXTCAL_FILE_SEARCH,
8 8
 );
9 9
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
10
-require_once __DIR__ . '/header.php';
10
+require_once __DIR__.'/header.php';
11 11
 
12 12
 $recurEventsArray = array();
13 13
 //needed to save the state of the form, so we don't show on the first time the list of available events
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 /***************************************************************/
20 20
 $searchExp = isset($_POST['searchExp']) ? $_POST['searchExp'] : '';
21 21
 $andor     = isset($_POST['andor']) ? $_POST['andor'] : '';
22
-$year      = isset($_POST['year']) ? (int)$_POST['year'] : date('Y');
23
-$month     = isset($_POST['month']) ? (int)$_POST['month'] : date('n');
24
-$day       = isset($_POST['day']) ? (int)$_POST['day'] : 0;
25
-$cat       = isset($_POST['cat']) ? (int)$_POST['cat'] : 0;
22
+$year      = isset($_POST['year']) ? (int) $_POST['year'] : date('Y');
23
+$month     = isset($_POST['month']) ? (int) $_POST['month'] : date('n');
24
+$day       = isset($_POST['day']) ? (int) $_POST['day'] : 0;
25
+$cat       = isset($_POST['cat']) ? (int) $_POST['cat'] : 0;
26 26
 $orderby1  = isset($_POST['orderby1']) ? $_POST['orderby1'] : 'cat_name ASC';
27 27
 $orderby2  = isset($_POST['orderby2']) ? $_POST['orderby2'] : 'event_title ASC';
28 28
 $orderby3  = isset($_POST['orderby3']) ? $_POST['orderby3'] : '';
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     }
144 144
 }
145 145
 
146
-$eventsArray = array_merge((array)$eventsArray, (array)$recurEventsArray);
146
+$eventsArray = array_merge((array) $eventsArray, (array) $recurEventsArray);
147 147
 
148 148
 // Sort event array by event start
149 149
 //usort($eventsArray, "orderEvents");
@@ -234,4 +234,4 @@  discard block
 block discarded – undo
234 234
 $xoopsTpl->assign('lang', $lang);
235 235
 $xoopsTpl->assign('view', 'search');
236 236
 
237
-include XOOPS_ROOT_PATH . '/footer.php';
237
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21 21
 require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
22 22
 
23 23
 $moduleDirName = basename(dirname(__DIR__));
Please login to merge, or discard this patch.