Completed
Push — master ( a50592...10bab4 )
by Michael
01:56
created
class/rate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 // ------------------------------------------------------------------------ //
27 27
 
28 28
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
29
-require_once __DIR__ . '/../include/vars.php';
29
+require_once __DIR__.'/../include/vars.php';
30 30
 //mod_loadFunctions('', $GLOBALS['moddirname']);
31 31
 
32 32
 if (!class_exists('Brate')):
Please login to merge, or discard this patch.
class/blog.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  */
31 31
 
32 32
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
33
-require_once __DIR__ . '/../include/vars.php';
33
+require_once __DIR__.'/../include/vars.php';
34 34
 //mod_loadFunctions('', $GLOBALS['moddirname']);
35 35
 
36 36
 /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         {
134 134
             $ave = 3;
135 135
             if ($this->getVar('blog_rates')) {
136
-                $ave = number_format($this->getVar('blog_rating') / $this->getVar('blog_rates'), $decimals);
136
+                $ave = number_format($this->getVar('blog_rating')/$this->getVar('blog_rates'), $decimals);
137 137
             }
138 138
 
139 139
             return $ave;
Please login to merge, or discard this patch.
class/article.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  */
31 31
 
32 32
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
33
-require_once __DIR__ . '/../include/vars.php';
33
+require_once __DIR__.'/../include/vars.php';
34 34
 //mod_loadFunctions('', $GLOBALS['moddirname']);
35 35
 
36 36
 /**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         public function &getSummary($length = 0)
120 120
         {
121 121
             $content = $this->getVar('art_content');
122
-            $summary =& PlanetUtility::planetHtml2text($content);
122
+            $summary = & PlanetUtility::planetHtml2text($content);
123 123
             if (empty($length)) {
124 124
                 $length = $GLOBALS['xoopsModuleConfig']['display_summary'];
125 125
             }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         {
141 141
             $ave = 3;
142 142
             if ($this->getVar('art_rates')) {
143
-                $ave = number_format($this->getVar('art_rating') / $this->getVar('art_rates'), $decimals);
143
+                $ave = number_format($this->getVar('art_rating')/$this->getVar('art_rates'), $decimals);
144 144
             }
145 145
 
146 146
             return $ave;
Please login to merge, or discard this patch.
admin/admin.category.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -24,18 +24,18 @@  discard block
 block discarded – undo
24 24
 // URL: https://xoops.org                         //
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27
-require_once __DIR__ . '/admin_header.php';
28
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
27
+require_once __DIR__.'/admin_header.php';
28
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
29 29
 
30 30
 xoops_cp_header();
31 31
 $adminObject = \Xmf\Module\Admin::getInstance();
32 32
 $adminObject->displayNavigation(basename(__FILE__));
33
-require XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
33
+require XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php';
34 34
 //planet_adminmenu(1);
35 35
 
36 36
 $op     = !empty($_POST['op']) ? $_POST['op'] : (!empty($_GET['op']) ? $_GET['op'] : '');
37 37
 $cat_id = !empty($_POST['category']) ? $_POST['category'] : (!empty($_GET['category']) ? $_GET['category'] : 0);
38
-$cat_id = is_array($cat_id) ? array_map('intval', $cat_id) : (int)$cat_id;
38
+$cat_id = is_array($cat_id) ? array_map('intval', $cat_id) : (int) $cat_id;
39 39
 
40 40
 $categoryHandler = xoops_getModuleHandler('category', $GLOBALS['moddirname']);
41 41
 $blogHandler     = xoops_getModuleHandler('blog', $GLOBALS['moddirname']);
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     case 'save':
45 45
         if ($cat_id) {
46 46
             $category_obj = $categoryHandler->get($cat_id);
47
-        } else {
47
+        }else {
48 48
             $category_obj = $categoryHandler->create();
49 49
         }
50 50
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         if (!$categoryHandler->insert($category_obj)) {
55 55
             $message = planet_constant('AM_ERROR');
56
-        } else {
56
+        }else {
57 57
             $message = planet_constant('AM_DBUPDATED');
58 58
         }
59 59
         redirect_header('admin.category.php', 2, $message);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         // no break
75 75
     case 'order':
76 76
         $count = count($_POST['cat_order']);
77
-        for ($i = 0; $i < $count; ++$i) {
77
+        for ($i = 0; $i<$count; ++$i) {
78 78
             $category_obj = $categoryHandler->get($_POST['cat'][$i]);
79 79
             $category_obj->setVar('cat_order', $_POST['cat_order'][$i]);
80 80
             $categoryHandler->insert($category_obj, true);
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $button_tray->addElement($butt_cancel);
100 100
         $form->addElement($button_tray);
101 101
 
102
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _EDIT . '</legend>';
102
+        echo "<fieldset><legend style='font-weight: bold; color: #900;'>"._EDIT.'</legend>';
103 103
         echo '<br>';
104 104
         $form->display();
105 105
         echo '</fieldset>';
@@ -113,20 +113,20 @@  discard block
 block discarded – undo
113 113
         $blog_counts = $blogHandler->getCountsByCategory();
114 114
         foreach (array_keys($categories) as $cid) {
115 115
             if (!empty($blog_counts[$cid])) {
116
-                $categories[$cid] .= ' (' . (int)$blog_counts[$cid] . ')';
116
+                $categories[$cid] .= ' ('.(int) $blog_counts[$cid].')';
117 117
             }
118 118
         }
119 119
 
120
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . planet_constant('AM_LIST') . '</legend>';
120
+        echo "<fieldset><legend style='font-weight: bold; color: #900;'>".planet_constant('AM_LIST').'</legend>';
121 121
         echo "<br style=\"clear:both;\">";
122 122
 
123 123
         echo "<form name='list' method='post'>";
124 124
         echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
125 125
         echo "<tr align='center'>";
126
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_ORDER') . '</td>';
127
-        echo "<th align='left' class='bg3' width='80%'>" . planet_constant('AM_TITLE') . '</td>';
128
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_BLOGCOUNT') . '</td>';
129
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_ACTIONS') . '</td>';
126
+        echo "<th class='bg3' width='5%'>".planet_constant('AM_ORDER').'</td>';
127
+        echo "<th align='left' class='bg3' width='80%'>".planet_constant('AM_TITLE').'</td>';
128
+        echo "<th class='bg3' width='5%'>".planet_constant('AM_BLOGCOUNT').'</td>';
129
+        echo "<th class='bg3' width='5%'>".planet_constant('AM_ACTIONS').'</td>';
130 130
         //        echo "<td class='bg3' width='5%'>" . _DELETE . "</td>";
131 131
 
132 132
         echo '</tr>';
@@ -134,20 +134,20 @@  discard block
 block discarded – undo
134 134
         $ii = 0;
135 135
         foreach (array_keys($categories) as $cid) {
136 136
             echo "<tr class='odd' align='left'>";
137
-            echo "<td><input type='hidden' name='cat[]' value='" . $cid . "'>";
138
-            echo "<input type='text' name='cat_order[]' value='" . ($ii * 10) . "'></td>";
139
-            echo '<td>' . $categories[$cid] . '</td>';
140
-            echo "<td align='center'>" . @$blog_counts[$cid] . '</td>';
137
+            echo "<td><input type='hidden' name='cat[]' value='".$cid."'>";
138
+            echo "<input type='text' name='cat_order[]' value='".($ii*10)."'></td>";
139
+            echo '<td>'.$categories[$cid].'</td>';
140
+            echo "<td align='center'>".@$blog_counts[$cid].'</td>';
141 141
 
142
-            echo "<td align='center'><a href='admin.category.php?op=edit &amp;category='" . $cid . "' title='" . _EDIT . "'><img src='" . $pathIcon16 . "/edit.png '" . "alt='" . _EDIT . "' title='" . _EDIT . "' </a>&nbsp;
143
-                  <a href='admin.category.php?op=del &amp;category='" . $cid . "' title='" . _DELETE . "'><img src='" . $pathIcon16 . "/delete.png '" . " alt='" . _EDIT . "' title='" . _DELETE . "' </a></td>";
142
+            echo "<td align='center'><a href='admin.category.php?op=edit &amp;category='".$cid."' title='"._EDIT."'><img src='".$pathIcon16."/edit.png '"."alt='"._EDIT."' title='"._EDIT."' </a>&nbsp;
143
+                  <a href='admin.category.php?op=del &amp;category='" . $cid."' title='"._DELETE."'><img src='".$pathIcon16."/delete.png '"." alt='"._EDIT."' title='"._DELETE."' </a></td>";
144 144
             echo '</tr>';
145 145
             ++$ii;
146 146
         }
147 147
         echo "<tr class='even' align='center'>";
148 148
         echo "<td colspan='5'>";
149
-        echo "<input name='submit' value='" . _SUBMIT . "' type='submit'>";
150
-        echo "<input name='' value='" . _CANCEL . "' type='reset'>";
149
+        echo "<input name='submit' value='"._SUBMIT."' type='submit'>";
150
+        echo "<input name='' value='"._CANCEL."' type='reset'>";
151 151
         echo "<input name='op' value='order' type='hidden'>";
152 152
         echo '</td>';
153 153
         echo '</tr>';
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $button_tray->addElement($butt_cancel);
167 167
         $form->addElement($button_tray);
168 168
 
169
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _ADD . '</legend>';
169
+        echo "<fieldset><legend style='font-weight: bold; color: #900;'>"._ADD.'</legend>';
170 170
         echo '<br>';
171 171
         $form->display();
172 172
         echo '</fieldset>';
Please login to merge, or discard this patch.
xml.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 use Xmf\Request;
28 28
 
29 29
 ob_start();
30
-include __DIR__ . '/header.php';
30
+include __DIR__.'/header.php';
31 31
 
32 32
 if (PlanetUtility::planetParseArguments($args_num, $args, $args_str)) {
33 33
     $args['article'] = @$args_num[0];
@@ -86,16 +86,16 @@  discard block
 block discarded – undo
86 86
     }
87 87
 } elseif (!empty($uid)) {
88 88
     $source = 'bookmark';
89
-} else {
89
+}else {
90 90
     $source = '';
91 91
 }
92 92
 
93 93
 $xml_charset = 'UTF-8';
94
-require_once XOOPS_ROOT_PATH . '/class/template.php';
94
+require_once XOOPS_ROOT_PATH.'/class/template.php';
95 95
 $tpl = new XoopsTpl();
96 96
 $tpl->xoops_setCaching(2);
97 97
 $tpl->xoops_setCacheTime(3600);
98
-$xoopsCachedTemplateId = md5($xoopsModule->getVar('mid') . ',' . $article_id . ',' . $category_id . ',' . $blog_id . ',' . $uid . ',' . $type);
98
+$xoopsCachedTemplateId = md5($xoopsModule->getVar('mid').','.$article_id.','.$category_id.','.$blog_id.','.$uid.','.$type);
99 99
 if (!$tpl->is_cached('db:system_dummy.tpl', $xoopsCachedTemplateId)) {
100 100
     $criteria = new CriteriaCompo();
101 101
     $criteria->setLimit($xoopsModuleConfig['articles_perpage']);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
             $articles_obj[$article_id] = $article_obj;
109 109
 
110
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $article_obj->getVar('art_id');
110
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/view.article.php'.URL_DELIMITER.''.$article_obj->getVar('art_id');
111 111
             break;
112 112
 
113 113
         case 'category':
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $criteria->add(new Criteria('bc.cat_id', $category_id));
118 118
             $articles_obj = $articleHandler->getByCategory($criteria);
119 119
 
120
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'c' . $category_id;
120
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'.URL_DELIMITER.'c'.$category_id;
121 121
             break;
122 122
 
123 123
         case 'blog':
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             $criteria->add(new Criteria('blog_id', $blog_id));
128 128
             $articles_obj = $articleHandler->getAll($criteria);
129 129
 
130
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'b' . $blog_id;
130
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'.URL_DELIMITER.'b'.$blog_id;
131 131
             break;
132 132
 
133 133
         case 'bookmark':
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             $criteria->add(new Criteria('bm.bm_uid', $uid));
139 139
             $articles_obj = $articleHandler->getByBookmark($criteria);
140 140
 
141
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'u' . $uid;
141
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'.URL_DELIMITER.'u'.$uid;
142 142
 
143 143
             break;
144 144
 
@@ -148,20 +148,20 @@  discard block
 block discarded – undo
148 148
 
149 149
             $articles_obj = $articleHandler->getAll($criteria);
150 150
 
151
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php';
151
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php';
152 152
             break;
153 153
     }
154 154
     $items = [];
155 155
     foreach (array_keys($articles_obj) as $id) {
156 156
         $content = $articles_obj[$id]->getVar('art_content');
157
-        $content .= '<br>' . planet_constant('MD_SOURCE') . ': ' . $articles_obj[$id]->getVar('art_link') . ' ' . $articles_obj[$id]->getVar('art_author');
157
+        $content .= '<br>'.planet_constant('MD_SOURCE').': '.$articles_obj[$id]->getVar('art_link').' '.$articles_obj[$id]->getVar('art_author');
158 158
         $items[] = [
159 159
             'title'                     => $articles_obj[$id]->getVar('art_title'),
160
-            'link'                      => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $articles_obj[$id]->getVar('art_id'),
160
+            'link'                      => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/view.article.php'.URL_DELIMITER.''.$articles_obj[$id]->getVar('art_id'),
161 161
             'description'               => $content,
162 162
             'descriptionHtmlSyndicated' => true,
163 163
             'date'                      => $articles_obj[$id]->getTime('rss'),
164
-            'source'                    => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/',
164
+            'source'                    => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/',
165 165
             'author'                    => $articles_obj[$id]->getVar('art_author')
166 166
         ];
167 167
     }
@@ -170,24 +170,24 @@  discard block
 block discarded – undo
170 170
     $xmlHandler = xoops_getModuleHandler('xml', $GLOBALS['moddirname']);
171 171
     $xml        = $xmlHandler->create($type);
172 172
     $xml->setVar('encoding', $xml_charset);
173
-    $xml->setVar('title', $xoopsConfig['sitename'] . ' :: ' . $pagetitle, 'UTF-8', $xml_charset, true);
173
+    $xml->setVar('title', $xoopsConfig['sitename'].' :: '.$pagetitle, 'UTF-8', $xml_charset, true);
174 174
     $xml->setVar('description', $rssdesc, true);
175 175
     $xml->setVar('descriptionHtmlSyndicated', true);
176 176
     $xml->setVar('link', $xml_link);
177
-    $xml->setVar('syndicationURL', XOOPS_URL . '/' . xoops_getenv('PHP_SELF'), 'post', true);
177
+    $xml->setVar('syndicationURL', XOOPS_URL.'/'.xoops_getenv('PHP_SELF'), 'post', true);
178 178
     $xml->setVar('webmaster', checkEmail($xoopsConfig['adminmail'], true));
179 179
     $xml->setVar('editor', checkEmail($xoopsConfig['adminmail'], true));
180 180
     $xml->setVar('category', $xoopsModule->getVar('name'), true);
181 181
     $xml->setVar('generator', $xoopsModule->getInfo('version'));
182 182
     $xml->setVar('language', _LANGCODE);
183 183
 
184
-    $dimention = @getimagesize(XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/' . $xoopsModule->getInfo('image'));
184
+    $dimention = @getimagesize(XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['moddirname'].'/'.$xoopsModule->getInfo('image'));
185 185
     $image     = [
186 186
         'width'       => $dimention[0],
187 187
         'height'      => $dimention[1],
188
-        'title'       => $xoopsConfig['sitename'] . ' :: ' . $pagetitle,
189
-        'url'         => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/' . $xoopsModule->getInfo('image'),
190
-        'link'        => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/',
188
+        'title'       => $xoopsConfig['sitename'].' :: '.$pagetitle,
189
+        'url'         => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/'.$xoopsModule->getInfo('image'),
190
+        'link'        => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/',
191 191
         'description' => $rssdesc
192 192
     ];
193 193
     $xml->setImage($image);
@@ -205,11 +205,11 @@  discard block
 block discarded – undo
205 205
     */
206 206
     $xml->addItems($items);
207 207
 
208
-    $dummy_content = $xmlHandler->display($xml, XOOPS_CACHE_PATH . '/' . $GLOBALS['moddirname'] . '.xml.tmp');
208
+    $dummy_content = $xmlHandler->display($xml, XOOPS_CACHE_PATH.'/'.$GLOBALS['moddirname'].'.xml.tmp');
209 209
 
210 210
     $tpl->assign_by_ref('dummy_content', $dummy_content);
211 211
 }
212 212
 //$content = ob_get_contents();
213 213
 ob_end_clean();
214
-header('Content-Type:text/xml; charset=' . $xml_charset);
214
+header('Content-Type:text/xml; charset='.$xml_charset);
215 215
 $tpl->display('db:system_dummy.tpl', $xoopsCachedTemplateId);
Please login to merge, or discard this patch.
transfer.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -14,43 +14,43 @@  discard block
 block discarded – undo
14 14
 
15 15
 use Xmf\Request;
16 16
 
17
-include __DIR__ . '/header.php';
17
+include __DIR__.'/header.php';
18 18
 
19 19
 if (PlanetUtility::planetParseArguments($args_num, $args, $args_str)) {
20 20
     $args['article'] = @$args_num[0];
21 21
     $args['op']      = @$args_str[0];
22 22
 }
23 23
 
24
-$article_id = Request::getInt('article', Request::getInt('article', @$args['article'], 'POST'), 'GET');//(int)(empty($_GET['article']) ? (empty($_POST['article']) ? @$args['article'] : $_POST['article']) : $_GET['article']);
24
+$article_id = Request::getInt('article', Request::getInt('article', @$args['article'], 'POST'), 'GET'); //(int)(empty($_GET['article']) ? (empty($_POST['article']) ? @$args['article'] : $_POST['article']) : $_GET['article']);
25 25
 
26
-$op = Request::getString('op', Request::getString('op', @$args['op'], 'POST'), 'GET');//empty($_GET['op']) ? (empty($_POST['op']) ? @$args['op'] : $_POST['op']) : $_GET['op'];
26
+$op = Request::getString('op', Request::getString('op', @$args['op'], 'POST'), 'GET'); //empty($_GET['op']) ? (empty($_POST['op']) ? @$args['op'] : $_POST['op']) : $_GET['op'];
27 27
 $op = strtolower(trim($op));
28 28
 
29 29
 if (empty($article_id)) {
30 30
     if (empty(Request::getUrl('HTTP_REFERER', '', 'SERVER'))) {
31 31
         //$_SERVER['HTTP_REFERER']))
32 32
 
33
-        include XOOPS_ROOT_PATH . '/header.php';
33
+        include XOOPS_ROOT_PATH.'/header.php';
34 34
         xoops_error(_NOPERM);
35 35
         $xoopsOption['output_type'] = 'plain';
36
-        include XOOPS_ROOT_PATH . '/footer.php';
36
+        include XOOPS_ROOT_PATH.'/footer.php';
37 37
         exit();
38
-    } else {
38
+    }else {
39 39
         $ref_parser = parse_url(Request::getUrl('HTTP_REFERER', '', 'SERVER')); //$_SERVER['HTTP_REFERER']);
40
-        $uri_parser = parse_url(Request::getUrl('REQUEST_URI', '', 'SERVER'));// $_SERVER['REQUEST_URI']);
40
+        $uri_parser = parse_url(Request::getUrl('REQUEST_URI', '', 'SERVER')); // $_SERVER['REQUEST_URI']);
41 41
         if ((!empty($ref_parser['host']) && !empty($uri_parser['host']) && $uri_parser['host'] != $ref_parser['host'])
42 42
             || ($ref_parser['path'] != $uri_parser['path'])) {
43
-            include XOOPS_ROOT_PATH . '/header.php';
44
-            include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
43
+            include XOOPS_ROOT_PATH.'/header.php';
44
+            include XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php';
45 45
             xoops_confirm([], 'javascript: window.close();', sprintf(planet_constant('MD_TRANSFER_DONE'), ''), _CLOSE, Request::getUrl('HTTP_REFERER', '', 'SERVER'));
46 46
             $xoopsOption['output_type'] = 'plain';
47
-            include XOOPS_ROOT_PATH . '/footer.php';
47
+            include XOOPS_ROOT_PATH.'/footer.php';
48 48
             exit();
49
-        } else {
50
-            include XOOPS_ROOT_PATH . '/header.php';
49
+        }else {
50
+            include XOOPS_ROOT_PATH.'/header.php';
51 51
             xoops_error(_NOPERM);
52 52
             $xoopsOption['output_type'] = 'plain';
53
-            include XOOPS_ROOT_PATH . '/footer.php';
53
+            include XOOPS_ROOT_PATH.'/footer.php';
54 54
             exit();
55 55
         }
56 56
     }
@@ -62,16 +62,16 @@  discard block
 block discarded – undo
62 62
 // Display option form
63 63
 if (empty($op)) {
64 64
     $module_variables .= "<input type=\"hidden\" name=\"article\" id=\"article\" value=\"{$article_id}\">";
65
-    include XOOPS_ROOT_PATH . '/Frameworks/transfer/option.transfer.php';
65
+    include XOOPS_ROOT_PATH.'/Frameworks/transfer/option.transfer.php';
66 66
     exit();
67
-} else {
67
+}else {
68 68
     $data           = [];
69 69
     $data['id']     = $article_id;
70 70
     $data['title']  = $article_obj->getVar('art_title');
71 71
     $data['time']   = $article_obj->getTime('l');
72 72
     $data['image']  = '';
73 73
     $data['source'] = $article_obj->getVar('art_link');
74
-    $data['url']    = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $article_obj->getVar('art_id');
74
+    $data['url']    = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/view.article.php'.URL_DELIMITER.''.$article_obj->getVar('art_id');
75 75
     $data['author'] = $article_obj->getVar('art_author');
76 76
 
77 77
     switch ($op) {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         case 'print':
84 84
         case 'pdf':
85
-            ${"{$op}_data"}            =& $data;
85
+            ${"{$op}_data"}            = & $data;
86 86
             ${"{$op}_data"}['date']    = $pdf_data['time'];
87 87
             ${"{$op}_data"}['content'] = $article_obj->getVar('art_content');
88 88
             break;
@@ -92,6 +92,6 @@  discard block
 block discarded – undo
92 92
             $data['content'] = $article_obj->getSummary();
93 93
             break;
94 94
     }
95
-    include XOOPS_ROOT_PATH . '/Frameworks/transfer/action.transfer.php';
95
+    include XOOPS_ROOT_PATH.'/Frameworks/transfer/action.transfer.php';
96 96
     exit();
97 97
 }
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
 
28 28
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
29 29
 
30
-include __DIR__ . '/include/vars.php';
30
+include __DIR__.'/include/vars.php';
31 31
 
32
-$modversion                 = [
32
+$modversion = [
33 33
     'name'          => planet_constant('MI_NAME'),
34 34
     'version'       => 2.10,
35 35
     'module_status' => 'Final',
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
     'credits'       => 'XOOPS Project',
40 40
     'image'         => 'assets/images/logoModule.png',
41 41
     'dirname'       => $GLOBALS['moddirname'],
42
-    'help'          => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
42
+    'help'          => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/readme.html'
43 43
 ];
44 44
 $modversion['help']         = 'page=help';
45 45
 $modversion['license']      = 'GNU see LICENSE';
46
-$modversion['license_file'] = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/gpl.txt';
46
+$modversion['license_file'] = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/gpl.txt';
47 47
 $modversion['author_word']  = '';
48 48
 $modversion['module_team']  = '';
49 49
 
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
 // database tables
63 63
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
64 64
 $modversion['tables']           = [
65
-    $GLOBALS['MOD_DB_PREFIX'] . '_category',
66
-    $GLOBALS['MOD_DB_PREFIX'] . '_article',
67
-    $GLOBALS['MOD_DB_PREFIX'] . '_blog',
68
-    $GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
69
-    $GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
70
-    $GLOBALS['MOD_DB_PREFIX'] . '_rate'
65
+    $GLOBALS['MOD_DB_PREFIX'].'_category',
66
+    $GLOBALS['MOD_DB_PREFIX'].'_article',
67
+    $GLOBALS['MOD_DB_PREFIX'].'_blog',
68
+    $GLOBALS['MOD_DB_PREFIX'].'_blogcat',
69
+    $GLOBALS['MOD_DB_PREFIX'].'_bookmark',
70
+    $GLOBALS['MOD_DB_PREFIX'].'_rate'
71 71
 ];
72 72
 
73 73
 // Admin things
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
 /**
94 94
  * Templates
95 95
  */
96
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_index.tpl', 'description' => ''];
97
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_article.tpl', 'description' => ''];
98
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_archive.tpl', 'description' => ''];
99
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_blogs.tpl', 'description' => ''];
100
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_search.tpl', 'description' => ''];
96
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_index.tpl', 'description' => ''];
97
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_article.tpl', 'description' => ''];
98
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_archive.tpl', 'description' => ''];
99
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_blogs.tpl', 'description' => ''];
100
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_search.tpl', 'description' => ''];
101 101
 
102 102
 //module css
103 103
 $modversion['css'] = 'templates/style.css';
@@ -109,31 +109,31 @@  discard block
 block discarded – undo
109 109
 $modversion['blocks'][$i]['file']        = 'block.php';
110 110
 $modversion['blocks'][$i]['name']        = planet_constant('MI_ARTICLE');
111 111
 $modversion['blocks'][$i]['description'] = planet_constant('MI_ARTICLE_DESC');
112
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_article_show';
112
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_article_show';
113 113
 $modversion['blocks'][$i]['options']     = 'time|10|0|0'; // type|MaxItems|TitleLength|SummaryLength
114
-$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'] . '_article_edit';
115
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_article.tpl';
114
+$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'].'_article_edit';
115
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_article.tpl';
116 116
 
117 117
 ++$i;
118 118
 $modversion['blocks'][$i]['file']        = 'block.php';
119 119
 $modversion['blocks'][$i]['name']        = planet_constant('MI_CATEGORY');
120 120
 $modversion['blocks'][$i]['description'] = planet_constant('MI_CATEGORY_DESC');
121
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_category_show';
122
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_category.tpl';
121
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_category_show';
122
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_category.tpl';
123 123
 
124 124
 ++$i;
125 125
 $modversion['blocks'][$i]['file']        = 'block.php';
126 126
 $modversion['blocks'][$i]['name']        = planet_constant('MI_BLOG');
127 127
 $modversion['blocks'][$i]['description'] = planet_constant('MI_BLOG_DESC');
128
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_blog_show';
128
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_blog_show';
129 129
 $modversion['blocks'][$i]['options']     = 'feature|10|0|1'; // type|MaxItems|TitleLength|ShowDesc
130
-$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'] . '_blog_edit';
131
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_blog.tpl';
130
+$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'].'_blog_edit';
131
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_blog.tpl';
132 132
 
133 133
 // Search
134 134
 $modversion['hasSearch']      = 1;
135 135
 $modversion['search']['file'] = 'include/search.inc.php';
136
-$modversion['search']['func'] = $GLOBALS['VAR_PREFIX'] . '_search';
136
+$modversion['search']['func'] = $GLOBALS['VAR_PREFIX'].'_search';
137 137
 
138 138
 // Comments
139 139
 $modversion['hasComments'] = 1;
@@ -143,15 +143,15 @@  discard block
 block discarded – undo
143 143
 
144 144
 // Comment callback functions
145 145
 $modversion['comments']['callbackFile']        = 'include/comment.inc.php';
146
-$modversion['comments']['callback']['approve'] = $GLOBALS['VAR_PREFIX'] . '_com_approve';
147
-$modversion['comments']['callback']['update']  = $GLOBALS['VAR_PREFIX'] . '_com_update';
146
+$modversion['comments']['callback']['approve'] = $GLOBALS['VAR_PREFIX'].'_com_approve';
147
+$modversion['comments']['callback']['update']  = $GLOBALS['VAR_PREFIX'].'_com_update';
148 148
 
149 149
 // Configs
150 150
 // Config items
151 151
 $modversion['config'][] = [
152 152
     'name'        => 'do_debug',
153
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
154
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
153
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG',
154
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG_DESC',
155 155
     'formtype'    => 'yesno',
156 156
     'valuetype'   => 'int',
157 157
     'default'     => 1
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
 
160 160
 $modversion['config'][] = [
161 161
     'name'        => 'do_urw',
162
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
163
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
162
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE',
163
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE_DESC',
164 164
     'formtype'    => 'yesno',
165 165
     'valuetype'   => 'int',
166 166
     'default'     => in_array(php_sapi_name(), ['apache', 'apache2handler'])
@@ -168,8 +168,8 @@  discard block
 block discarded – undo
168 168
 
169 169
 $modversion['config'][] = [
170 170
     'name'        => 'theme_set',
171
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
172
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
171
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_THEMESET',
172
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_THEMESET_DESC',
173 173
     'formtype'    => 'select',
174 174
     'valuetype'   => 'text',
175 175
     'options'     => [_NONE => '0'],
@@ -178,23 +178,23 @@  discard block
 block discarded – undo
178 178
 
179 179
 $modversion['config'][] = [
180 180
     'name'        => 'timeformat',
181
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
182
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
181
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT',
182
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_DESC',
183 183
     'formtype'    => 'select',
184 184
     'valuetype'   => 'text',
185 185
     'options'     => [
186 186
         _DATESTRING                                       => 'l',
187 187
         _MEDIUMDATESTRING                                 => 'm',
188 188
         _SHORTDATESTRING                                  => 's',
189
-        $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
189
+        $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_CUSTOM' => 'c'
190 190
     ],
191 191
     'default'     => 'c'
192 192
 ];
193 193
 
194 194
 $modversion['config'][] = [
195 195
     'name'        => 'articles_perpage',
196
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
197
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
196
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE',
197
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE_DESC',
198 198
     'formtype'    => 'textbox',
199 199
     'valuetype'   => 'int',
200 200
     'default'     => 10
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
 
203 203
 $modversion['config'][] = [
204 204
     'name'        => 'list_perpage',
205
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
206
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
205
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE',
206
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE_DESC',
207 207
     'formtype'    => 'textbox',
208 208
     'valuetype'   => 'int',
209 209
     'default'     => 20
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
 
212 212
 $modversion['config'][] = [
213 213
     'name'        => 'blogs_perupdate',
214
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
215
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
214
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE',
215
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE_DESC',
216 216
     'formtype'    => 'textbox',
217 217
     'valuetype'   => 'int',
218 218
     'default'     => 10
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
 
221 221
 $modversion['config'][] = [
222 222
     'name'        => 'article_expire',
223
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
224
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
223
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE',
224
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE_DESC',
225 225
     'formtype'    => 'textbox',
226 226
     'valuetype'   => 'int',
227 227
     'default'     => 30
@@ -229,8 +229,8 @@  discard block
 block discarded – undo
229 229
 
230 230
 $modversion['config'][] = [
231 231
     'name'        => 'display_summary',
232
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
233
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
232
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY',
233
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY_DESC',
234 234
     'formtype'    => 'textbox',
235 235
     'valuetype'   => 'int',
236 236
     'default'     => 0
@@ -238,8 +238,8 @@  discard block
 block discarded – undo
238 238
 
239 239
 $modversion['config'][] = [
240 240
     'name'        => 'do_sibling',
241
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
242
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
241
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING',
242
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING_DESC',
243 243
     'formtype'    => 'yesno',
244 244
     'valuetype'   => 'int',
245 245
     'default'     => 1
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
 
248 248
 $modversion['config'][] = [
249 249
     'name'        => 'pings',
250
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
251
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
250
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_PING',
251
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_PING_DESC',
252 252
     'formtype'    => 'textarea',
253 253
     'valuetype'   => 'text',
254 254
     'default'     => ''
@@ -256,8 +256,8 @@  discard block
 block discarded – undo
256 256
 
257 257
 $modversion['config'][] = [
258 258
     'name'        => 'trackback_option',
259
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
260
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
259
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION',
260
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION_DESC',
261 261
     'formtype'    => 'select',
262 262
     'valuetype'   => 'int',
263 263
     'default'     => 0,
@@ -266,17 +266,17 @@  discard block
 block discarded – undo
266 266
 
267 267
 $modversion['config'][] = [
268 268
     'name'        => 'copyright',
269
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
270
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
269
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT',
270
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT_DESC',
271 271
     'formtype'    => 'textbox',
272 272
     'valuetype'   => 'text',
273
-    'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
273
+    'default'     => 'Copyright&copy; %s & '.$xoopsConfig['sitename']
274 274
 ];
275 275
 
276 276
 $modversion['config'][] = [
277 277
     'name'        => 'newblog_submit',
278
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
279
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
278
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT',
279
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT_DESC',
280 280
     'formtype'    => 'select',
281 281
     'valuetype'   => 'int',
282 282
     'default'     => 2,
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
 
292 292
 $modversion['config'][] = [
293 293
     'name'        => 'anonymous_rate',
294
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
295
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
294
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE',
295
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE_DESC',
296 296
     'formtype'    => 'yesno',
297 297
     'valuetype'   => 'int',
298 298
     'default'     => 0
@@ -300,8 +300,8 @@  discard block
 block discarded – undo
300 300
 
301 301
 $modversion['config'][] = [
302 302
     'name'        => 'do_pseudocron',
303
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
304
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
303
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON',
304
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON_DESC',
305 305
     'formtype'    => 'yesno',
306 306
     'valuetype'   => 'int',
307 307
     'default'     => 1
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 
312 312
 $modversion['hasNotification']             = 1;
313 313
 $modversion['notification']['lookup_file'] = 'include/notification.inc.php';
314
-$modversion['notification']['lookup_func'] = $GLOBALS['VAR_PREFIX'] . '_notify_iteminfo';
314
+$modversion['notification']['lookup_func'] = $GLOBALS['VAR_PREFIX'].'_notify_iteminfo';
315 315
 
316 316
 $i = 0;
317 317
 ++$i;
Please login to merge, or discard this patch.
include/config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
  */
21 21
 
22 22
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
23
-require_once __DIR__ . '/common.php';
23
+require_once __DIR__.'/common.php';
24 24
 
25 25
 $moduleDirName = basename(dirname(__DIR__));
26 26
 $uploadFolders = [
27 27
     NEWBB_UPLOAD_PATH,
28
-    NEWBB_UPLOAD_PATH . '/thumbs'
28
+    NEWBB_UPLOAD_PATH.'/thumbs'
29 29
 ];
30 30
 
31 31
 //$copyFiles = array(
Please login to merge, or discard this patch.
include/functions.ini.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             if (isset($GLOBALS['xoopsModuleConfig'])) {
81 81
                 $moduleConfig = $GLOBALS['xoopsModuleConfig'];
82 82
             }
83
-        } else {
83
+        }else {
84 84
             /** @var XoopsModuleHandler $moduleHandler */
85 85
             $moduleHandler = xoops_getHandler('module');
86 86
             $module        = $moduleHandler->getByDirname($GLOBALS['moddirname']);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             }
94 94
             unset($configs);
95 95
         }
96
-        if ($customConfig = @include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/plugin.php') {
96
+        if ($customConfig = @include XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['moddirname'].'/include/plugin.php') {
97 97
             $moduleConfig = array_merge($moduleConfig, $customConfig);
98 98
         }
99 99
 
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
             if (!in_array(URL_DELIMITER, ['?', '/'])) {
107 107
                 die('Exit on security');
108 108
             }
109
-        } else {
109
+        }else {
110 110
             $moduleConfig = planet_load_config();
111 111
             if (empty($moduleConfig['do_urw'])) {
112 112
                 define('URL_DELIMITER', '?');
113
-            } else {
113
+            }else {
114 114
                 define('URL_DELIMITER', '/');
115 115
             }
116 116
         }
Please login to merge, or discard this patch.