Completed
Push — master ( c35c76...d79f0a )
by Michael
05:53
created
class/utilities.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -463,8 +463,8 @@
 block discarded – undo
463 463
     /**************************************************************************/
464 464
     /**
465 465
      * @param $color
466
-     * @param $plancher
467
-     * @param $plafond
466
+     * @param integer $plancher
467
+     * @param integer $plafond
468 468
      *
469 469
      * @return string
470 470
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
             $cat_color = $catList->getVar('cat_color');
151 151
             $checked   = in_array($cat_id, $cat) ? 'checked' : '';
152 152
             $cat       = '' . "<div style='float:left; margin-left:5px;'>" . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
153
-                         . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" . " {$name}" . '</div>';
153
+                            . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" . " {$name}" . '</div>';
154 154
 
155 155
             $t[] = $cat;
156 156
         }
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  * L'utilisation de ce formulaire d'adminitration suppose
16 16
  * que la classe correspondante de la table a été générées avec classGenerator
17 17
  **/
18
-include_once XOOPS_ROOT_PATH . '/class/uploader.php';
18
+include_once XOOPS_ROOT_PATH.'/class/uploader.php';
19 19
 
20 20
 /**
21 21
  * Class ExtcalUtilities.
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
     public static function extcal_loadImg(&$REQUEST, &$event_picture1, &$event_picture2)
49 49
     {
50 50
         ///////////////////////////////////////////////////////////////////////////////
51
-        $uploaddir_event = XOOPS_ROOT_PATH . '/uploads/extcal/';
52
-        $uploadurl_event = XOOPS_URL . '/uploads/extcal/';
51
+        $uploaddir_event = XOOPS_ROOT_PATH.'/uploads/extcal/';
52
+        $uploadurl_event = XOOPS_URL.'/uploads/extcal/';
53 53
         //$picture = '';
54 54
         for ($j = 1; $j < 3; ++$j) {
55
-            $delimg = @$REQUEST['delimg_' . $j . ''];
56
-            $delimg = isset($delimg) ? (int)$delimg : 0;
55
+            $delimg = @$REQUEST['delimg_'.$j.''];
56
+            $delimg = isset($delimg) ? (int) $delimg : 0;
57 57
             if (0 == $delimg && !empty($REQUEST['xoops_upload_file'][$j])) {
58 58
                 $upload = new XoopsMediaUploader($uploaddir_event, array(
59 59
                     'image/gif',
@@ -76,15 +76,15 @@  discard block
 block discarded – undo
76 76
                             $event_picture2 = $upload->getSavedFileName();
77 77
                         }
78 78
                     }
79
-                } elseif (!empty($REQUEST['file' . $j])) {
79
+                } elseif (!empty($REQUEST['file'.$j])) {
80 80
                     if ($j == 1) {
81
-                        $event_picture1 = $REQUEST['file' . $j];
81
+                        $event_picture1 = $REQUEST['file'.$j];
82 82
                     } elseif ($j == 2) {
83
-                        $event_picture2 = $REQUEST['file' . $j];
83
+                        $event_picture2 = $REQUEST['file'.$j];
84 84
                     }
85 85
                 }
86 86
             } else {
87
-                $url_event = XOOPS_ROOT_PATH . '/uploads/extcal/' . $REQUEST['file' . $j];
87
+                $url_event = XOOPS_ROOT_PATH.'/uploads/extcal/'.$REQUEST['file'.$j];
88 88
                 if ($j == 1) {
89 89
                     $event_picture1 = '';
90 90
                 } elseif ($j == 2) {
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
             $name      = $catList->getVar('cat_name');
150 150
             $cat_color = $catList->getVar('cat_color');
151 151
             $checked   = in_array($cat_id, $cat) ? 'checked' : '';
152
-            $cat       = '' . "<div style='float:left; margin-left:5px;'>" . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
153
-                         . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" . " {$name}" . '</div>';
152
+            $cat       = ''."<div style='float:left; margin-left:5px;'>"."<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
153
+                         . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"." {$name}".'</div>';
154 154
 
155 155
             $t[] = $cat;
156 156
         }
@@ -176,17 +176,17 @@  discard block
 block discarded – undo
176 176
             $select->addOption('', '');
177 177
         }
178 178
 
179
-        $select->addOption('year ASC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
180
-        $select->addOption('year DESC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
179
+        $select->addOption('year ASC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_ASC);
180
+        $select->addOption('year DESC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_DESC);
181 181
 
182
-        $select->addOption('month ASC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
183
-        $select->addOption('month DESC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
182
+        $select->addOption('month ASC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_ASC);
183
+        $select->addOption('month DESC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_DESC);
184 184
 
185
-        $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
186
-        $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
185
+        $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_ASC);
186
+        $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_DESC);
187 187
 
188
-        $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
189
-        $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
188
+        $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_ASC);
189
+        $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_DESC);
190 190
 
191 191
         return $select;
192 192
     }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     public static function echoDateArray($period)
301 301
     {
302 302
         foreach ($period as $dt) {
303
-            echo $dt->format("l Y-m-d H:i:s\n") . '<br>';
303
+            echo $dt->format("l Y-m-d H:i:s\n").'<br>';
304 304
         }
305 305
     }
306 306
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
         }
317 317
 
318 318
         $txt = print_r($t, true);
319
-        echo '<pre>Number of items: ' . count($t) . "<br>{$txt}</pre>";
319
+        echo '<pre>Number of items: '.count($t)."<br>{$txt}</pre>";
320 320
     }
321 321
 
322 322
     /*****************************************************************/
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
         if ($msg != '') {
330 330
             echo "<hr>{$msg}<hr>";
331 331
         }
332
-        echo $line . '<br>';
332
+        echo $line.'<br>';
333 333
     }
334 334
 
335 335
     /*****************************************************************/
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
             echo "<hr>{$msg}<hr>";
357 357
         }
358 358
 
359
-        echo 'date --->' . $tsName . ' = ' . $ts . ' - ' . date('d-m-Y H:m:s', $ts) . '<br>';
359
+        echo 'date --->'.$tsName.' = '.$ts.' - '.date('d-m-Y H:m:s', $ts).'<br>';
360 360
     }
361 361
 
362 362
     /*****************************************************************/
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
      */
471 471
     public static function getLighterColor($color, $plancher, $plafond)
472 472
     {
473
-        include_once __DIR__ . '/colorTools.php';
473
+        include_once __DIR__.'/colorTools.php';
474 474
 
475 475
         //$ct = new ColorTools();
476 476
         //return $ct->eclaircir($color,$plancher,$plafond);
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
                 if (!mkdir($folder) && !is_dir($folder)) {
493 493
                     throw new \RuntimeException(sprintf('Unable to create the %s directory', $folder));
494 494
                 } else {
495
-                    file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>');
495
+                    file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>');
496 496
                 }
497 497
             }
498 498
         } catch (Exception $e) {
@@ -530,10 +530,10 @@  discard block
 block discarded – undo
530 530
         //    @mkdir($dst);
531 531
         while (false !== ($file = readdir($dir))) {
532 532
             if (($file !== '.') && ($file !== '..')) {
533
-                if (is_dir($src . '/' . $file)) {
534
-                    self::recurseCopy($src . '/' . $file, $dst . '/' . $file);
533
+                if (is_dir($src.'/'.$file)) {
534
+                    self::recurseCopy($src.'/'.$file, $dst.'/'.$file);
535 535
                 } else {
536
-                    copy($src . '/' . $file, $dst . '/' . $file);
536
+                    copy($src.'/'.$file, $dst.'/'.$file);
537 537
                 }
538 538
             }
539 539
         }
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
         //check for minimum XOOPS version
555 555
         $currentVer  = substr(XOOPS_VERSION, 6); // get the numeric part of string
556 556
         $currArray   = explode('.', $currentVer);
557
-        $requiredVer = '' . $module->getInfo('min_xoops'); //making sure it's a string
557
+        $requiredVer = ''.$module->getInfo('min_xoops'); //making sure it's a string
558 558
         $reqArray    = explode('.', $requiredVer);
559 559
         $success     = true;
560 560
         foreach ($reqArray as $k => $v) {
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
                     break;
569 569
                 }
570 570
             } else {
571
-                if ((int)$v > 0) { // handles things like x.x.x.0_RC2
571
+                if ((int) $v > 0) { // handles things like x.x.x.0_RC2
572 572
                     $success = false;
573 573
                     break;
574 574
                 }
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
         // check for minimum PHP version
597 597
         $success = true;
598 598
         $verNum  = phpversion();
599
-        $reqVer  =& $module->getInfo('min_php');
599
+        $reqVer  = & $module->getInfo('min_php');
600 600
         if (false !== $reqVer && '' !== $reqVer) {
601 601
             if (version_compare($verNum, $reqVer, '<')) {
602 602
                 $module->setErrors(sprintf(_AM_TAG_ERROR_BAD_PHP, $reqVer, $verNum));
Please login to merge, or discard this patch.
language/english/modinfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once __DIR__ . '/../../include/constantes.php';
3
+include_once __DIR__.'/../../include/constantes.php';
4 4
 define('_MI_EXTCAL_NAME', 'eXtCal');
5 5
 define('_MI_EXTCAL_ABOUT', 'About');
6 6
 define('_MI_EXTCAL_AFTER', 'After');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 define('_MI_EXTCAL_START_PAGE', 'Module home page');
136 136
 define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event');
137 137
 define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs');
138
-define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line');
138
+define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line');
139 139
 define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.');
140 140
 define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab');
141 141
 define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day');
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include XOOPS_ROOT_PATH . '/header.php';
3
+include XOOPS_ROOT_PATH.'/header.php';
4 4
 
5
-include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
5
+include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
6 6
 
7
-include_once __DIR__ . '/include/agenda_fnc.php';
8
-include_once __DIR__ . '/class/utilities.php';
7
+include_once __DIR__.'/include/agenda_fnc.php';
8
+include_once __DIR__.'/class/utilities.php';
9 9
 
10
-include_once __DIR__ . '/class/perm.php';
11
-include_once __DIR__ . '/class/form/extcalform.php';
10
+include_once __DIR__.'/class/perm.php';
11
+include_once __DIR__.'/class/form/extcalform.php';
12 12
 
13 13
 xoops_loadLanguage('modinfo', _EXTCAL_MODULE);
14 14
 
15 15
 //------------------------------------------------------
16
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
17
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
18
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php';
19
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php';
20
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
16
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
17
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
18
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php';
19
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php';
20
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
21 21
 
22 22
 //------------------------------------------------------
23 23
 // Getting eXtCal object's handler
Please login to merge, or discard this patch.
include/constantes.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@
 block discarded – undo
102 102
 define('_EXTCAL_NAV_NEW_EVENT', 'new-event');
103 103
 
104 104
 define('_EXTCAL_NAV_LIST',
105
-       _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n"
106
-       . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT);
105
+        _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n"
106
+        . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT);
107 107
 
108 108
 define('_EXTCAL_PREFIX_VIEW', 'view_');
109 109
 define('_EXTCAL_SUFFIX_VIEW', '.php');
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 define('_EXTCAL_CLN_EVENT', 'ExtcalEvent');
38 38
 
39 39
 //-------------------------------------------------------------------
40
-define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__ . '/../class/pear');
40
+define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__.'/../class/pear');
41 41
 //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' );
42 42
 
43 43
 $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT;
@@ -72,22 +72,22 @@  discard block
 block discarded – undo
72 72
 //}
73 73
 define('_EXTCAL_PEAR_ROOT', $pear_path);
74 74
 
75
-define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT . '/Calendar');
76
-define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT . '/');
75
+define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT.'/Calendar');
76
+define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT.'/');
77 77
 
78 78
 //-------------------------------------------------------------------
79 79
 define('_EXTCAL_SHOW_NO_PICTURE', false);
80 80
 
81 81
 define('_EXTCAL_PATH_HORLOGES', '/modules/extcal/assets/images/horloges/');
82
-define('_EXTCAL_PATH_ICONS16', XOOPS_URL . '/Frameworks/moduleclasses/icons/16/');
83
-define('_EXTCAL_PATH_ICONS32', XOOPS_URL . '/Frameworks/moduleclasses/icons/32/');
84
-define('_EXTCAL_PATH_FO', XOOPS_URL . '/modules/extcal/');
85
-define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO . 'admin/');
86
-define('_EXTCAL_PATH_LG', XOOPS_URL . '/modules/extcal/languages/');
82
+define('_EXTCAL_PATH_ICONS16', XOOPS_URL.'/Frameworks/moduleclasses/icons/16/');
83
+define('_EXTCAL_PATH_ICONS32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32/');
84
+define('_EXTCAL_PATH_FO', XOOPS_URL.'/modules/extcal/');
85
+define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO.'admin/');
86
+define('_EXTCAL_PATH_LG', XOOPS_URL.'/modules/extcal/languages/');
87 87
 
88 88
 define('_EXTCAL_IMG_INTERVAL', 'interval04.png');
89
-define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16 . _EXTCAL_IMG_INTERVAL);
90
-define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32 . _EXTCAL_IMG_INTERVAL);
89
+define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16._EXTCAL_IMG_INTERVAL);
90
+define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32._EXTCAL_IMG_INTERVAL);
91 91
 
92 92
 //define('_EXTCAL_DIRNAME',    $xoopsModule->getVar('dirname'));
93 93
 
@@ -103,22 +103,22 @@  discard block
 block discarded – undo
103 103
 define('_EXTCAL_NAV_NEW_EVENT', 'new-event');
104 104
 
105 105
 define('_EXTCAL_NAV_LIST',
106
-       _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n"
107
-       . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT);
106
+       _EXTCAL_NAV_CALMONTH."\n"._EXTCAL_NAV_CALWEEK."\n"._EXTCAL_NAV_YEAR."\n"._EXTCAL_NAV_MONTH."\n"._EXTCAL_NAV_WEEK."\n"._EXTCAL_NAV_DAY."\n"._EXTCAL_NAV_AGENDA_WEEK."\n"._EXTCAL_NAV_AGENDA_DAY."\n"
107
+       . _EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT);
108 108
 
109 109
 define('_EXTCAL_PREFIX_VIEW', 'view_');
110 110
 define('_EXTCAL_SUFFIX_VIEW', '.php');
111 111
 
112
-define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW);
113
-define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW);
114
-define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW);
115
-define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW);
116
-define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW);
117
-define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW);
118
-define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW);
119
-define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW);
120
-define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW);
121
-define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW);
112
+define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW);
113
+define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW);
114
+define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW);
115
+define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW);
116
+define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW);
117
+define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW);
118
+define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW);
119
+define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW);
120
+define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW);
121
+define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW);
122 122
 
123 123
 define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php');
124 124
 
Please login to merge, or discard this patch.
include/onupdate.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,8 +166,8 @@
 block discarded – undo
166 166
 
167 167
         //delete .html entries from the tpl table
168 168
         $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname',
169
-                                                                                                          'n')
170
-               . "' AND `tpl_file` LIKE '%.html%'";
169
+                                                                                                            'n')
170
+                . "' AND `tpl_file` LIKE '%.html%'";
171 171
         $xoopsDB->queryF($sql);
172 172
 
173 173
         // Load class XoopsFile ====================
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser)
20 20
     || !$GLOBALS['xoopsUser']->IsAdmin()
21 21
 ) {
22
-    exit('Restricted access' . PHP_EOL);
22
+    exit('Restricted access'.PHP_EOL);
23 23
 }
24 24
 
25 25
 /**
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 function xoops_module_pre_update_extcal(XoopsModule $module)
45 45
 {
46 46
     $moduleDirName  = basename(dirname(__DIR__));
47
-    $classUtilities = ucfirst($moduleDirName) . 'Utilities';
47
+    $classUtilities = ucfirst($moduleDirName).'Utilities';
48 48
     if (!class_exists($classUtilities)) {
49 49
         xoops_load('utilities', $moduleDirName);
50 50
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     }
83 83
 
84 84
 
85
-    $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/';
85
+    $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/';
86 86
     $cls = 'extcal_%1$s';
87 87
 
88 88
     $version = array(
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     while (list($key, $val) = each($version)) {
101 101
         if ($previousVersion < $val) {
102 102
             $name = sprintf($cls, $key);
103
-            $f    = $fld . $name . '.php';
103
+            $f    = $fld.$name.'.php';
104 104
             //ext_echo ("<hr>{$f}<hr>");
105 105
             if (is_readable($f)) {
106 106
                 echo "mise à jour version : {$key} = {$val}<br>";
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
     if ($previousVersion < 240) {
116 116
 
117 117
 
118
-        $configurator = include __DIR__ . '/config.php';
119
-        $classUtilities = ucfirst($moduleDirName) . 'Utilities';
118
+        $configurator = include __DIR__.'/config.php';
119
+        $classUtilities = ucfirst($moduleDirName).'Utilities';
120 120
         if (!class_exists($classUtilities)) {
121 121
             xoops_load('utilities', $moduleDirName);
122 122
         }
@@ -125,14 +125,14 @@  discard block
 block discarded – undo
125 125
         //delete old HTML templates
126 126
         if (count($configurator['templateFolders']) > 0) {
127 127
             foreach ($configurator['templateFolders'] as $folder) {
128
-                $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder);
128
+                $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder);
129 129
                 if (is_dir($templateFolder)) {
130 130
                     $templateList = array_diff(scandir($templateFolder), array('..', '.'));
131 131
                     foreach ($templateList as $k => $v) {
132
-                        $fileInfo = new SplFileInfo($templateFolder . $v);
132
+                        $fileInfo = new SplFileInfo($templateFolder.$v);
133 133
                         if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') {
134
-                            if (file_exists($templateFolder . $v)) {
135
-                                unlink($templateFolder . $v);
134
+                            if (file_exists($templateFolder.$v)) {
135
+                                unlink($templateFolder.$v);
136 136
                             }
137 137
                         }
138 138
                     }
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
 
145 145
         //  ---  COPY blank.png FILES ---------------
146 146
         if (count($configurator['copyFiles']) > 0) {
147
-            $file = __DIR__ . '/../assets/images/blank.png';
147
+            $file = __DIR__.'/../assets/images/blank.png';
148 148
             foreach (array_keys($configurator['copyFiles']) as $i) {
149
-                $dest = $configurator['copyFiles'][$i] . '/blank.png';
149
+                $dest = $configurator['copyFiles'][$i].'/blank.png';
150 150
                 $classUtilities::copyFile($file, $dest);
151 151
             }
152 152
         }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         if (count($configurator['oldFiles']) > 0) {
156 156
             //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
157 157
             foreach (array_keys($configurator['oldFiles']) as $i) {
158
-                $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]);
158
+                $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]);
159 159
                 if (is_file($tempFile)) {
160 160
                     unlink($tempFile);
161 161
                 }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         //---------------------
166 166
 
167 167
         //delete .html entries from the tpl table
168
-        $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname',
168
+        $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname',
169 169
                                                                                                           'n')
170 170
                . "' AND `tpl_file` LIKE '%.html%'";
171 171
         $xoopsDB->queryF($sql);
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         xoops_load('XoopsFile');
175 175
 
176 176
         //delete /images directory ============
177
-        $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname', 'n') . '/images/');
177
+        $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$module->getVar('dirname', 'n').'/images/');
178 178
         $folderHandler   = XoopsFile::getHandler('folder', $imagesDirectory);
179 179
         $folderHandler->delete($imagesDirectory);
180 180
     }
Please login to merge, or discard this patch.
include/oninstall.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 function xoops_module_pre_install_extcal(XoopsModule $module)
26 26
 {
27 27
     $moduleDirName = basename(dirname(__DIR__));
28
-    $className     = ucfirst($moduleDirName) . 'Utilities';
28
+    $className     = ucfirst($moduleDirName).'Utilities';
29 29
     if (!class_exists($className)) {
30 30
         xoops_load('utilities', $moduleDirName);
31 31
     }
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
         return false;
40 40
     }
41 41
 
42
-    $mod_tables =& $module->getInfo('tables');
42
+    $mod_tables = & $module->getInfo('tables');
43 43
     foreach ($mod_tables as $table) {
44
-        $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';');
44
+        $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';');
45 45
     }
46 46
 
47 47
     return true;
@@ -70,20 +70,20 @@  discard block
 block discarded – undo
70 70
      */
71 71
 
72 72
     // Access right
73
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId);
74
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId);
75
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
73
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId);
74
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId);
75
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
76 76
 
77 77
     // Can submit
78
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId);
78
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId);
79 79
 
80 80
     // Auto approve
81
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId);
81
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId);
82 82
 
83 83
     //    $moduleDirName = $xoopsModule->getVar('dirname');
84
-    $configurator = include $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php');
84
+    $configurator = include $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php');
85 85
 
86
-    $classUtilities = ucfirst($moduleDirName) . 'Utilities';
86
+    $classUtilities = ucfirst($moduleDirName).'Utilities';
87 87
     if (!class_exists($classUtilities)) {
88 88
         xoops_load('utilities', $moduleDirName);
89 89
     }
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
         }
96 96
     }
97 97
     if (count($configurator['copyFiles']) > 0) {
98
-        $file = __DIR__ . '/../assets/images/blank.png';
98
+        $file = __DIR__.'/../assets/images/blank.png';
99 99
         foreach (array_keys($configurator['copyFiles']) as $i) {
100
-            $dest = $configurator['copyFiles'][$i] . '/blank.png';
100
+            $dest = $configurator['copyFiles'][$i].'/blank.png';
101 101
             $classUtilities::copyFile($file, $dest);
102 102
         }
103 103
     }
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined');
4
-include_once __DIR__ . '/include/constantes.php';
5
-include_once __DIR__ . '/include/agenda_fnc.php';
6
-include_once __DIR__ . '/class/config.php';
4
+include_once __DIR__.'/include/constantes.php';
5
+include_once __DIR__.'/include/agenda_fnc.php';
6
+include_once __DIR__.'/class/config.php';
7 7
 //$loc_de = setlocale (LC_ALL, 'french');
8 8
 
9 9
 //echo "local :" .  setlocale(LC_TIME, $xoopsConfig['language'])."</ br>";
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
 
79 79
 // Tables created by sql file (without prefix!)
80 80
 $modversion['tables'] = array(
81
-    $moduleDirName . '_' . 'cat',
82
-    $moduleDirName . '_' . 'event',
83
-    $moduleDirName . '_' . 'eventmember',
84
-    $moduleDirName . '_' . 'eventnotmember',
85
-    $moduleDirName . '_' . 'file',
86
-    $moduleDirName . '_' . 'etablissement'
81
+    $moduleDirName.'_'.'cat',
82
+    $moduleDirName.'_'.'event',
83
+    $moduleDirName.'_'.'eventmember',
84
+    $moduleDirName.'_'.'eventnotmember',
85
+    $moduleDirName.'_'.'file',
86
+    $moduleDirName.'_'.'etablissement'
87 87
 );
88 88
 
89 89
 // SQL
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
 $modversion['config'][$i]['default']     = 5;
497 497
 
498 498
 ++$i;
499
-$modversion['config'][$i]['name']        = 'break' . $i;
499
+$modversion['config'][$i]['name']        = 'break'.$i;
500 500
 $modversion['config'][$i]['title']       = '_MI_EXTCAL_SHOW_OTHEROPTIONS';
501 501
 $modversion['config'][$i]['description'] = '';
502 502
 $modversion['config'][$i]['formtype']    = 'line_break';
Please login to merge, or discard this patch.
versions/extcal_2_21.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
         // Create who's not going table to fix bug. If the table exist, the query will faile
43 43
         $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_eventnotmember')
44
-               . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
44
+                . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
45 45
         $xoopsDB->query($sql);
46 46
     }
47 47
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,17 +30,17 @@
 block discarded – undo
30 30
         global $xoopsDB;
31 31
 
32 32
         // Create eXtcal upload directory if don't exist
33
-        $dir = XOOPS_ROOT_PATH . '/uploads/extcal';
33
+        $dir = XOOPS_ROOT_PATH.'/uploads/extcal';
34 34
         if (!is_dir($dir)) {
35 35
             mkdir($dir);
36 36
 
37 37
             // Copy index.html files on uploads folders
38
-            $indexFile = __DIR__ . '/index.html';
39
-            copy($indexFile, XOOPS_ROOT_PATH . '/uploads/extcal/index.html');
38
+            $indexFile = __DIR__.'/index.html';
39
+            copy($indexFile, XOOPS_ROOT_PATH.'/uploads/extcal/index.html');
40 40
         }
41 41
 
42 42
         // Create who's not going table to fix bug. If the table exist, the query will faile
43
-        $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_eventnotmember')
43
+        $sql = 'CREATE TABLE `'.$xoopsDB->prefix('extcal_eventnotmember')
44 44
                . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
45 45
         $xoopsDB->query($sql);
46 46
     }
Please login to merge, or discard this patch.
versions/extcal_2_15.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@
 block discarded – undo
48 48
         $xoopsDB->query($sql);
49 49
 
50 50
         $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_event')
51
-               . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
51
+                . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
52 52
         $xoopsDB->query($sql);
53 53
 
54 54
         $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_file')
55
-               . "` (`file_id` int(11) NOT NULL auto_increment,`file_name` varchar(255) NOT NULL,`file_nicename` varchar(255) NOT NULL,`file_mimetype` varchar(255) NOT NULL,`file_size` int(11) NOT NULL,`file_download` int(11) NOT NULL,`file_date` int(11) NOT NULL,`file_approved` tinyint(1) NOT NULL,`event_id` int(11) NOT NULL,`uid` int(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
55
+                . "` (`file_id` int(11) NOT NULL auto_increment,`file_name` varchar(255) NOT NULL,`file_nicename` varchar(255) NOT NULL,`file_mimetype` varchar(255) NOT NULL,`file_size` int(11) NOT NULL,`file_download` int(11) NOT NULL,`file_date` int(11) NOT NULL,`file_approved` tinyint(1) NOT NULL,`event_id` int(11) NOT NULL,`uid` int(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
56 56
         $xoopsDB->query($sql);
57 57
     }
58 58
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,26 +32,26 @@
 block discarded – undo
32 32
         //$xoopsDB = Database::getInstance();
33 33
         $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection();
34 34
 
35
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
35
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
36 36
         $xoopsDB->query($sql);
37 37
 
38
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;';
38
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;';
39 39
         $xoopsDB->query($sql);
40 40
 
41
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ';
41
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ';
42 42
         $xoopsDB->query($sql);
43 43
 
44
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;';
44
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;';
45 45
         $xoopsDB->query($sql);
46 46
 
47
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;';
47
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;';
48 48
         $xoopsDB->query($sql);
49 49
 
50
-        $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_event')
50
+        $sql = 'CREATE TABLE `'.$xoopsDB->prefix('extcal_event')
51 51
                . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
52 52
         $xoopsDB->query($sql);
53 53
 
54
-        $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_file')
54
+        $sql = 'CREATE TABLE `'.$xoopsDB->prefix('extcal_file')
55 55
                . "` (`file_id` int(11) NOT NULL auto_increment,`file_name` varchar(255) NOT NULL,`file_nicename` varchar(255) NOT NULL,`file_mimetype` varchar(255) NOT NULL,`file_size` int(11) NOT NULL,`file_download` int(11) NOT NULL,`file_date` int(11) NOT NULL,`file_approved` tinyint(1) NOT NULL,`event_id` int(11) NOT NULL,`uid` int(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
56 56
         $xoopsDB->query($sql);
57 57
     }
Please login to merge, or discard this patch.