Completed
Push — master ( a21b67...ec1681 )
by Michael
02:43
created
class/eventnotmember.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
21 21
 
22
-require_once __DIR__ . '/ExtcalPersistableObjectHandler.php';
22
+require_once __DIR__.'/ExtcalPersistableObjectHandler.php';
23 23
 
24 24
 /**
25 25
  * Class ExtcalEventNotMember.
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
         $eventNotMember = $this->getObjects(new Criteria('event_id', $eventId));
86 86
         $count          = count($eventNotMember);
87 87
         if ($count > 0) {
88
-            $in = '(' . $eventNotMember[0]->getVar('uid');
88
+            $in = '('.$eventNotMember[0]->getVar('uid');
89 89
             array_shift($eventNotMember);
90 90
             foreach ($eventNotMember as $member) {
91
-                $in .= ',' . $member->getVar('uid');
91
+                $in .= ','.$member->getVar('uid');
92 92
             }
93
-            $in       .= ')';
93
+            $in .= ')';
94 94
             $criteria = new Criteria('uid', $in, 'IN');
95 95
         } else {
96 96
             $criteria = new Criteria('uid', '(0)', 'IN');
Please login to merge, or discard this patch.
blocks/category_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /******************************************************/
23 23
 /* Ajour JJD - Evenements par categries               */
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 {
32 32
     global $xoopsUser, $extcalConfig;
33 33
 
34
-    require_once __DIR__ . '/../class/config.php';
34
+    require_once __DIR__.'/../class/config.php';
35 35
 
36 36
     // Retriving module config
37 37
     //     $extcalConfig = ExtcalConfig::getHandler();
@@ -88,22 +88,22 @@  discard block
 block discarded – undo
88 88
 
89 89
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
90 90
 
91
-    $form = _MB_EXTCAL_DISPLAY . " \n";
92
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
93
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
91
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
92
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
93
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
94 94
     array_shift($options);
95 95
     array_shift($options);
96
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
96
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
97 97
     if (array_search(0, $options) === false) {
98
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
98
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
99 99
     } else {
100
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
100
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
101 101
     }
102 102
     foreach ($cats as $cat) {
103 103
         if (array_search($cat->getVar('cat_id'), $options) === false) {
104
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
104
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
105 105
         } else {
106
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
106
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
107 107
         }
108 108
     }
109 109
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/random_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /**
23 23
  * @param $options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function bExtcalRandomShow($options)
28 28
 {
29
-    require_once __DIR__ . '/../class/config.php';
29
+    require_once __DIR__.'/../class/config.php';
30 30
 
31 31
     // Retriving module config
32 32
     $extcalConfig      = ExtcalConfig::getHandler();
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
 
65 65
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
66 66
 
67
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
68
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
69
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
67
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
68
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
69
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
70 70
     array_shift($options);
71 71
     array_shift($options);
72
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
72
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
73 73
     if (array_search(0, $options) === false) {
74
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
74
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
75 75
     } else {
76
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     }
78 78
     foreach ($cats as $cat) {
79 79
         if (array_search($cat->getVar('cat_id'), $options) === false) {
80
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
80
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
81 81
         } else {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
83 83
         }
84 84
     }
85 85
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/upcoming.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /**
23 23
  * @param $options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function bExtcalUpcomingShow($options)
28 28
 {
29
-    require_once __DIR__ . '/../class/config.php';
29
+    require_once __DIR__.'/../class/config.php';
30 30
 
31 31
     // Retriving module config
32 32
     $extcalConfig      = ExtcalConfig::getHandler();
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
     //mb $events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options));
52 52
 
53 53
     /* ========================================================================== */
54
-    $year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
55
-    $month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
56
-    $day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
57
-    $cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
54
+    $year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
55
+    $month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
56
+    $day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
57
+    $cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
58 58
     /* ========================================================================== */
59 59
 
60 60
     // Validate the date (day, month and year)
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         'nbEvent'      => $nbEvent,
88 88
         'nbDays'       => $nbDays,
89 89
     );
90
-    $events   = $eventHandler->getEventsOnPeriode($criteres);
90
+    $events = $eventHandler->getEventsOnPeriode($criteres);
91 91
 
92 92
     //----------------------------
93 93
 
@@ -114,27 +114,27 @@  discard block
 block discarded – undo
114 114
 
115 115
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
116 116
 
117
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
118
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
119
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
117
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
118
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
119
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
120 120
 
121
-    $form .= _MB_EXTCAL_UPCOMING_DAYS . ' : <input name="options[2]" size="5" maxlength="255" value="' . $options[2] . '" type="text"><br>';
121
+    $form .= _MB_EXTCAL_UPCOMING_DAYS.' : <input name="options[2]" size="5" maxlength="255" value="'.$options[2].'" type="text"><br>';
122 122
 
123 123
     array_shift($options);
124 124
     array_shift($options);
125 125
     array_shift($options);
126 126
 
127
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
127
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
128 128
     if (array_search(0, $options) === false) {
129
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
129
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
130 130
     } else {
131
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
131
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
132 132
     }
133 133
     foreach ($cats as $cat) {
134 134
         if (array_search($cat->getVar('cat_id'), $options) === false) {
135
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
135
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
136 136
         } else {
137
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
137
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
138 138
         }
139 139
     }
140 140
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/new_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /**
23 23
  * @param $options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function bExtcalNewShow($options)
28 28
 {
29
-    require_once __DIR__ . '/../class/config.php';
29
+    require_once __DIR__.'/../class/config.php';
30 30
 
31 31
     // Retriving module config
32 32
     $extcalConfig      = ExtcalConfig::getHandler();
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
 
65 65
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
66 66
 
67
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
68
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
69
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
67
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
68
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
69
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
70 70
     array_shift($options);
71 71
     array_shift($options);
72
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
72
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
73 73
     if (array_search(0, $options) === false) {
74
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
74
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
75 75
     } else {
76
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     }
78 78
     foreach ($cats as $cat) {
79 79
         if (array_search($cat->getVar('cat_id'), $options) === false) {
80
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
80
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
81 81
         } else {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
83 83
         }
84 84
     }
85 85
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/day_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /**
23 23
  * @param $options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function bExtcalDayShow($options)
28 28
 {
29
-    require_once __DIR__ . '/../class/config.php';
29
+    require_once __DIR__.'/../class/config.php';
30 30
 
31 31
     // Retriving module config
32 32
     $extcalConfig      = ExtcalConfig::getHandler();
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
 
65 65
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
66 66
 
67
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
68
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
69
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
67
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
68
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
69
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
70 70
     array_shift($options);
71 71
     array_shift($options);
72
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
72
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
73 73
     if (array_search(0, $options) === false) {
74
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
74
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
75 75
     } else {
76
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     }
78 78
     foreach ($cats as $cat) {
79 79
         if (array_search($cat->getVar('cat_id'), $options) === false) {
80
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
80
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
81 81
         } else {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
83 83
         }
84 84
     }
85 85
     $form .= '</select>';
Please login to merge, or discard this patch.
view_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_MONTH, 'file' => _EXTCAL_FILE_MONTH);
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
 $eventsArray = $events;
37 37
 
@@ -88,21 +88,21 @@  discard block
 block discarded – undo
88 88
 $nMonthCalObj = $monthCalObj->nextMonth('object');
89 89
 $navig        = array(
90 90
     'prev' => array(
91
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
91
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
92 92
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
93 93
     ),
94 94
     'this' => array(
95
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
95
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
96 96
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
97 97
     ),
98 98
     'next' => array(
99
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
99
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
100 100
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
101 101
     ),
102 102
 );
103 103
 
104 104
 // Title of the page
105
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
105
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
106 106
 
107 107
 // Assigning navig data to the template
108 108
 $xoopsTpl->assign('navig', $navig);
@@ -159,4 +159,4 @@  discard block
 block discarded – undo
159 159
 $xoopsTpl->assign('lang', $lang);
160 160
 $xoopsTpl->assign('view', 'month');
161 161
 
162
-include XOOPS_ROOT_PATH . '/footer.php';
162
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
new_event.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  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 7
 // Getting eXtCal object's handler
8 8
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 $permHandler = ExtcalPerm::getHandler();
11 11
 $xoopsUser   = $xoopsUser ?: null;
12 12
 if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) {
13
-    include XOOPS_ROOT_PATH . '/header.php';
13
+    include XOOPS_ROOT_PATH.'/header.php';
14 14
 
15 15
     // Title of the page
16 16
     $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     //$form->display();
22 22
 
23
-    include XOOPS_ROOT_PATH . '/footer.php';
23
+    include XOOPS_ROOT_PATH.'/footer.php';
24 24
 } else {
25 25
     redirect_header('index.php', 3);
26 26
 }
Please login to merge, or discard this patch.
include/oninstall.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 function xoops_module_pre_install_extcal(XoopsModule $module)
29 29
 {
30 30
     $moduleDirName = basename(dirname(__DIR__));
31
-    $className     = ucfirst($moduleDirName) . 'Utility';
31
+    $className     = ucfirst($moduleDirName).'Utility';
32 32
     if (!class_exists($className)) {
33 33
         xoops_load('utility', $moduleDirName);
34 34
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     $mod_tables = $module->getInfo('tables');
46 46
     foreach ($mod_tables as $table) {
47
-        $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';');
47
+        $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';');
48 48
     }
49 49
 
50 50
     return true;
@@ -73,20 +73,20 @@  discard block
 block discarded – undo
73 73
      */
74 74
 
75 75
     // Access right
76
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId);
77
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId);
78
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
76
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId);
77
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId);
78
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
79 79
 
80 80
     // Can submit
81
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId);
81
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId);
82 82
 
83 83
     // Auto approve
84
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId);
84
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId);
85 85
 
86 86
     //    $moduleDirName = $xoopsModule->getVar('dirname');
87
-    $configurator = include $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php');
87
+    $configurator = include $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php');
88 88
 
89
-    $classUtility = ucfirst($moduleDirName) . 'Utility';
89
+    $classUtility = ucfirst($moduleDirName).'Utility';
90 90
     if (!class_exists($classUtility)) {
91 91
         xoops_load('utility', $moduleDirName);
92 92
     }
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
         }
99 99
     }
100 100
     if (count($configurator['copyFiles']) > 0) {
101
-        $file = __DIR__ . '/../assets/images/blank.png';
101
+        $file = __DIR__.'/../assets/images/blank.png';
102 102
         foreach (array_keys($configurator['copyFiles']) as $i) {
103
-            $dest = $configurator['copyFiles'][$i] . '/blank.png';
103
+            $dest = $configurator['copyFiles'][$i].'/blank.png';
104 104
             $classUtility::copyFile($file, $dest);
105 105
         }
106 106
     }
Please login to merge, or discard this patch.