Passed
Pull Request — master (#583)
by Michael
14:01
created
htdocs/modules/publisher/blocks/search.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_search_show($options)
26 26
 {
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
     $type_select = "<select name=\"andor\">";
53 53
     $type_select .= "<option value=\"OR\"";
54 54
     if ("OR" === $andor) $type_select .= " selected=\"selected\"";
55
-    $type_select .= ">" . XoopsLocale::ANY_OR . "</option>";
55
+    $type_select .= ">".XoopsLocale::ANY_OR."</option>";
56 56
     $type_select .= "<option value=\"AND\"";
57 57
     if ("AND" === $andor) $type_select .= " selected=\"selected\"";
58
-    $type_select .= ">" . XoopsLocale::ALL . "</option>";
58
+    $type_select .= ">".XoopsLocale::ALL."</option>";
59 59
     $type_select .= "<option value=\"EXACT\"";
60 60
     if ("exact" === $andor) $type_select .= " selected=\"selected\"";
61
-    $type_select .= ">" . XoopsLocale::EXACT_MATCH . "</option>";
61
+    $type_select .= ">".XoopsLocale::EXACT_MATCH."</option>";
62 62
     $type_select .= "</select>";
63 63
 
64 64
     /* category */
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
     $select_category = "<select name=\"category[]\" size=\"5\" multiple=\"multiple\" width=\"150\" style=\"width:150px;\">";
67 67
     $select_category .= "<option value=\"all\"";
68 68
     if (empty($category) || count($category) == 0) $select_category .= "selected=\"selected\"";
69
-    $select_category .= ">" . XoopsLocale::ALL . "</option>";
69
+    $select_category .= ">".XoopsLocale::ALL."</option>";
70 70
     foreach ($categories as $id => $cat) {
71
-        $select_category .= "<option value=\"" . $id . "\"";
71
+        $select_category .= "<option value=\"".$id."\"";
72 72
         if (in_array($id, $category)) $select_category .= "selected=\"selected\"";
73
-        $select_category .= ">" . $cat . "</option>";
73
+        $select_category .= ">".$cat."</option>";
74 74
     }
75 75
     $select_category .= "</select>";
76 76
 
@@ -78,37 +78,37 @@  discard block
 block discarded – undo
78 78
     $searchin_select = "";
79 79
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"title\"";
80 80
     if (in_array("title", $searchin)) $searchin_select .= " checked";
81
-    $searchin_select .= " />" . _CO_PUBLISHER_TITLE . "&nbsp;&nbsp;";
81
+    $searchin_select .= " />"._CO_PUBLISHER_TITLE."&nbsp;&nbsp;";
82 82
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"subtitle\"";
83 83
     if (in_array("subtitle", $searchin)) $searchin_select .= " checked";
84
-    $searchin_select .= " />" . _CO_PUBLISHER_SUBTITLE . "&nbsp;&nbsp;";
84
+    $searchin_select .= " />"._CO_PUBLISHER_SUBTITLE."&nbsp;&nbsp;";
85 85
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"summary\"";
86 86
     if (in_array("summary", $searchin)) $searchin_select .= " checked";
87
-    $searchin_select .= " />" . _CO_PUBLISHER_SUMMARY . "&nbsp;&nbsp;";
87
+    $searchin_select .= " />"._CO_PUBLISHER_SUMMARY."&nbsp;&nbsp;";
88 88
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"text\"";
89 89
     if (in_array("body", $searchin)) $searchin_select .= " checked";
90
-    $searchin_select .= " />" . _CO_PUBLISHER_BODY . "&nbsp;&nbsp;";
90
+    $searchin_select .= " />"._CO_PUBLISHER_BODY."&nbsp;&nbsp;";
91 91
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"keywords\"";
92 92
     if (in_array("meta_keywords", $searchin)) $searchin_select .= " checked";
93
-    $searchin_select .= " />" . _CO_PUBLISHER_ITEM_META_KEYWORDS . "&nbsp;&nbsp;";
93
+    $searchin_select .= " />"._CO_PUBLISHER_ITEM_META_KEYWORDS."&nbsp;&nbsp;";
94 94
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"all\"";
95 95
     if (in_array("all", $searchin) || empty($searchin)) $searchin_select .= " checked";
96
-    $searchin_select .= " />" . XoopsLocale::ALL . "&nbsp;&nbsp;";
96
+    $searchin_select .= " />".XoopsLocale::ALL."&nbsp;&nbsp;";
97 97
 
98 98
     /* sortby */
99 99
     $sortby_select = "<select name=\"sortby\">";
100 100
     $sortby_select .= "<option value=\"itemid\"";
101 101
     if ("itemid" === $sortby || empty($sortby)) $sortby_select .= " selected=\"selected\"";
102
-    $sortby_select .= ">" . XoopsLocale::NONE . "</option>";
102
+    $sortby_select .= ">".XoopsLocale::NONE."</option>";
103 103
     $sortby_select .= "<option value=\"datesub\"";
104 104
     if ("datesub" === $sortby) $sortby_select .= " selected=\"selected\"";
105
-    $sortby_select .= ">" . _CO_PUBLISHER_DATESUB . "</option>";
105
+    $sortby_select .= ">"._CO_PUBLISHER_DATESUB."</option>";
106 106
     $sortby_select .= "<option value=\"title\"";
107 107
     if ("title" === $sortby) $sortby_select .= " selected=\"selected\"";
108
-    $sortby_select .= ">" . _CO_PUBLISHER_TITLE . "</option>";
108
+    $sortby_select .= ">"._CO_PUBLISHER_TITLE."</option>";
109 109
     $sortby_select .= "<option value=\"categoryid\"";
110 110
     if ("categoryid" === $sortby) $sortby_select .= " selected=\"selected\"";
111
-    $sortby_select .= ">" . _CO_PUBLISHER_CATEGORY . "</option>";
111
+    $sortby_select .= ">"._CO_PUBLISHER_CATEGORY."</option>";
112 112
     $sortby_select .= "</select>";
113 113
 
114 114
     $block["type_select"] = $type_select;
Please login to merge, or discard this patch.
Braces   +48 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,7 +28,9 @@  discard block
 block discarded – undo
28 28
     $xoops = Xoops::getInstance();
29 29
     $publisher = Publisher::getInstance();
30 30
     $categories = $publisher->getCategoryHandler()->getCategoriesForSearch();
31
-    if (count($categories) == 0) return $block;
31
+    if (count($categories) == 0) {
32
+        return $block;
33
+    }
32 34
 
33 35
     $andor = isset($_POST["andor"]) ? $_POST["andor"] : (isset($_GET["andor"]) ? $_GET["andor"] : "");
34 36
 
@@ -51,13 +53,19 @@  discard block
 block discarded – undo
51 53
     /* type */
52 54
     $type_select = "<select name=\"andor\">";
53 55
     $type_select .= "<option value=\"OR\"";
54
-    if ("OR" === $andor) $type_select .= " selected=\"selected\"";
56
+    if ("OR" === $andor) {
57
+        $type_select .= " selected=\"selected\"";
58
+    }
55 59
     $type_select .= ">" . XoopsLocale::ANY_OR . "</option>";
56 60
     $type_select .= "<option value=\"AND\"";
57
-    if ("AND" === $andor) $type_select .= " selected=\"selected\"";
61
+    if ("AND" === $andor) {
62
+        $type_select .= " selected=\"selected\"";
63
+    }
58 64
     $type_select .= ">" . XoopsLocale::ALL . "</option>";
59 65
     $type_select .= "<option value=\"EXACT\"";
60
-    if ("exact" === $andor) $type_select .= " selected=\"selected\"";
66
+    if ("exact" === $andor) {
67
+        $type_select .= " selected=\"selected\"";
68
+    }
61 69
     $type_select .= ">" . XoopsLocale::EXACT_MATCH . "</option>";
62 70
     $type_select .= "</select>";
63 71
 
@@ -65,11 +73,15 @@  discard block
 block discarded – undo
65 73
 
66 74
     $select_category = "<select name=\"category[]\" size=\"5\" multiple=\"multiple\" width=\"150\" style=\"width:150px;\">";
67 75
     $select_category .= "<option value=\"all\"";
68
-    if (empty($category) || count($category) == 0) $select_category .= "selected=\"selected\"";
76
+    if (empty($category) || count($category) == 0) {
77
+        $select_category .= "selected=\"selected\"";
78
+    }
69 79
     $select_category .= ">" . XoopsLocale::ALL . "</option>";
70 80
     foreach ($categories as $id => $cat) {
71 81
         $select_category .= "<option value=\"" . $id . "\"";
72
-        if (in_array($id, $category)) $select_category .= "selected=\"selected\"";
82
+        if (in_array($id, $category)) {
83
+            $select_category .= "selected=\"selected\"";
84
+        }
73 85
         $select_category .= ">" . $cat . "</option>";
74 86
     }
75 87
     $select_category .= "</select>";
@@ -77,37 +89,57 @@  discard block
 block discarded – undo
77 89
     /* scope */
78 90
     $searchin_select = "";
79 91
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"title\"";
80
-    if (in_array("title", $searchin)) $searchin_select .= " checked";
92
+    if (in_array("title", $searchin)) {
93
+        $searchin_select .= " checked";
94
+    }
81 95
     $searchin_select .= " />" . _CO_PUBLISHER_TITLE . "&nbsp;&nbsp;";
82 96
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"subtitle\"";
83
-    if (in_array("subtitle", $searchin)) $searchin_select .= " checked";
97
+    if (in_array("subtitle", $searchin)) {
98
+        $searchin_select .= " checked";
99
+    }
84 100
     $searchin_select .= " />" . _CO_PUBLISHER_SUBTITLE . "&nbsp;&nbsp;";
85 101
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"summary\"";
86
-    if (in_array("summary", $searchin)) $searchin_select .= " checked";
102
+    if (in_array("summary", $searchin)) {
103
+        $searchin_select .= " checked";
104
+    }
87 105
     $searchin_select .= " />" . _CO_PUBLISHER_SUMMARY . "&nbsp;&nbsp;";
88 106
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"text\"";
89
-    if (in_array("body", $searchin)) $searchin_select .= " checked";
107
+    if (in_array("body", $searchin)) {
108
+        $searchin_select .= " checked";
109
+    }
90 110
     $searchin_select .= " />" . _CO_PUBLISHER_BODY . "&nbsp;&nbsp;";
91 111
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"keywords\"";
92
-    if (in_array("meta_keywords", $searchin)) $searchin_select .= " checked";
112
+    if (in_array("meta_keywords", $searchin)) {
113
+        $searchin_select .= " checked";
114
+    }
93 115
     $searchin_select .= " />" . _CO_PUBLISHER_ITEM_META_KEYWORDS . "&nbsp;&nbsp;";
94 116
     $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"all\"";
95
-    if (in_array("all", $searchin) || empty($searchin)) $searchin_select .= " checked";
117
+    if (in_array("all", $searchin) || empty($searchin)) {
118
+        $searchin_select .= " checked";
119
+    }
96 120
     $searchin_select .= " />" . XoopsLocale::ALL . "&nbsp;&nbsp;";
97 121
 
98 122
     /* sortby */
99 123
     $sortby_select = "<select name=\"sortby\">";
100 124
     $sortby_select .= "<option value=\"itemid\"";
101
-    if ("itemid" === $sortby || empty($sortby)) $sortby_select .= " selected=\"selected\"";
125
+    if ("itemid" === $sortby || empty($sortby)) {
126
+        $sortby_select .= " selected=\"selected\"";
127
+    }
102 128
     $sortby_select .= ">" . XoopsLocale::NONE . "</option>";
103 129
     $sortby_select .= "<option value=\"datesub\"";
104
-    if ("datesub" === $sortby) $sortby_select .= " selected=\"selected\"";
130
+    if ("datesub" === $sortby) {
131
+        $sortby_select .= " selected=\"selected\"";
132
+    }
105 133
     $sortby_select .= ">" . _CO_PUBLISHER_DATESUB . "</option>";
106 134
     $sortby_select .= "<option value=\"title\"";
107
-    if ("title" === $sortby) $sortby_select .= " selected=\"selected\"";
135
+    if ("title" === $sortby) {
136
+        $sortby_select .= " selected=\"selected\"";
137
+    }
108 138
     $sortby_select .= ">" . _CO_PUBLISHER_TITLE . "</option>";
109 139
     $sortby_select .= "<option value=\"categoryid\"";
110
-    if ("categoryid" === $sortby) $sortby_select .= " selected=\"selected\"";
140
+    if ("categoryid" === $sortby) {
141
+        $sortby_select .= " selected=\"selected\"";
142
+    }
111 143
     $sortby_select .= ">" . _CO_PUBLISHER_CATEGORY . "</option>";
112 144
     $sortby_select .= "</select>";
113 145
 
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_random_item.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_items_random_item_show($options)
26 26
 {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,9 @@
 block discarded – undo
29 29
     // creating the ITEM object
30 30
     $itemsObj = $publisher->getItemHandler()->getRandomItem('', array(_PUBLISHER_STATUS_PUBLISHED));
31 31
 
32
-    if (!is_object($itemsObj)) return $block;
32
+    if (!is_object($itemsObj)) {
33
+        return $block;
34
+    }
33 35
 
34 36
     $block['content'] = $itemsObj->getBlockSummary(300, true); //show complete summary  but truncate to 300 if only body available
35 37
     $block['id'] = $itemsObj->getVar('itemid');
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_recent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_items_recent_show($options)
26 26
 {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $criteria = null;
48 48
     } else {
49 49
         $criteria = new CriteriaCompo();
50
-        $criteria->add(new Criteria('categoryid', '(' . $options[0] . ')', 'IN'));
50
+        $criteria->add(new Criteria('categoryid', '('.$options[0].')', 'IN'));
51 51
     }
52 52
     $itemsObj = $publisher->getItemHandler()->getItems($limit, $start, array(_PUBLISHER_STATUS_PUBLISHED), -1, $sort, $order, '', true, $criteria, true);
53 53
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $block['lang_poster'] = _MB_PUBLISHER_POSTEDBY;
74 74
         $block['lang_date'] = _MB_PUBLISHER_DATE;
75 75
         $modulename = $myts->displayTarea($publisher->getModule()->getVar('name'));
76
-        $block['lang_visitItem'] = _MB_PUBLISHER_VISITITEM . " " . $modulename;
76
+        $block['lang_visitItem'] = _MB_PUBLISHER_VISITITEM." ".$modulename;
77 77
     }
78 78
 
79 79
     return $block;
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/category_items_sel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * @version         $Id$
19 19
  */
20 20
 
21
-include_once dirname(__DIR__) . '/include/common.php';
21
+include_once dirname(__DIR__).'/include/common.php';
22 22
 
23 23
 function publisher_category_items_sel_show($options)
24 24
 {
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/latest_files.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_latest_files_show($options)
26 26
 {
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_spot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_items_spot_show($options)
26 26
 {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 $category['name'] = $cat->getVar('name');
49 49
                 $category['categoryurl'] = $cat->getCategoryUrl();
50 50
                 if ($cat->image() !== 'blank.png') {
51
-                    $category['image_path'] = PublisherUtils::getImageDir('category', false) . $cat->image();
51
+                    $category['image_path'] = PublisherUtils::getImageDir('category', false).$cat->image();
52 52
                 } else {
53 53
                     $category['image_path'] = '';
54 54
                 }
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/latest_news.php 1 patch
Spacing   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  * @version         $Id$
22 22
  */
23 23
 
24
-include_once dirname(__DIR__) . '/include/common.php';
24
+include_once dirname(__DIR__).'/include/common.php';
25 25
 
26 26
 function publisher_latest_news_show($options)
27 27
 {
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
         $criteria = null;
58 58
     } else {
59 59
         $criteria = new CriteriaCompo();
60
-        $criteria->add(new Criteria('categoryid', '(' . $options[29] . ')', 'IN'));
60
+        $criteria->add(new Criteria('categoryid', '('.$options[29].')', 'IN'));
61 61
     }
62 62
 
63 63
     // Use specific ITEMS
64 64
     if ($selected_stories != 0) {
65 65
         unset($criteria); //removes category option
66 66
         $criteria = new CriteriaCompo();
67
-        $criteria->add(new Criteria('itemid', '(' . $selected_stories . ')', 'IN'));
67
+        $criteria->add(new Criteria('itemid', '('.$selected_stories.')', 'IN'));
68 68
     }
69 69
 
70 70
     $itemsObj = $publisher->getItemHandler()->getItems($limit, $start, array(_PUBLISHER_STATUS_PUBLISHED), -1, $sort, $order, '', true, $criteria, 'itemid');
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $ls_height = '';
98 98
         if ($options[12] != 0) {
99
-            $ls_height = 'height="' . $imgheight . '" ';
99
+            $ls_height = 'height="'.$imgheight.'" ';
100 100
         }
101 101
 
102 102
         if ($options[15] === 'LEFT') {
@@ -113,17 +113,17 @@  discard block
 block discarded – undo
113 113
 
114 114
         //Image
115 115
         if ($options[10] == 1 && $item['image_path'] != '') {
116
-            $startdiv = '<div style="' . $imgposition . '"><a href="' . $item['itemurl'] . '">';
117
-            $style = 'style="margin' . $ls_margin . ': 10px; padding: 2px; border: ' . $border . 'px solid #' . $bordercolor . '"';
118
-            $enddiv = 'width="' . $imgwidth . '" ' . $ls_height . '/></a></div>';
119
-            $image = $startdiv . '<img ' . $style . ' src="' . $item['item_image'] . '" alt="' . $item['image_name'] . '" ' . $enddiv;
116
+            $startdiv = '<div style="'.$imgposition.'"><a href="'.$item['itemurl'].'">';
117
+            $style = 'style="margin'.$ls_margin.': 10px; padding: 2px; border: '.$border.'px solid #'.$bordercolor.'"';
118
+            $enddiv = 'width="'.$imgwidth.'" '.$ls_height.'/></a></div>';
119
+            $image = $startdiv.'<img '.$style.' src="'.$item['item_image'].'" alt="'.$item['image_name'].'" '.$enddiv;
120 120
 
121 121
             $item['image'] = $image;
122 122
         }
123 123
 
124 124
         if ($publisher->isUserAdmin()) {
125
-            $item['admin'] = "<a href='" . PUBLISHER_URL . "/submit.php?itemid=" . $itemObj->getVar('itemid'). "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif'" . " title='" . _CO_PUBLISHER_EDIT . "' alt='" . _CO_PUBLISHER_EDIT . "' /></a>&nbsp;";
126
-            $item['admin'] .= "<a href='" . PUBLISHER_URL . "/admin/item.php?op=del&amp;itemid=" . $itemObj->getVar('itemid'). "'><img src='" . PUBLISHER_URL . "/images/links/delete.png'" . " title='" . _CO_PUBLISHER_DELETE . "' alt='" . _CO_PUBLISHER_DELETE . "' /></a>";
125
+            $item['admin'] = "<a href='".PUBLISHER_URL."/submit.php?itemid=".$itemObj->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/edit.gif'"." title='"._CO_PUBLISHER_EDIT."' alt='"._CO_PUBLISHER_EDIT."' /></a>&nbsp;";
126
+            $item['admin'] .= "<a href='".PUBLISHER_URL."/admin/item.php?op=del&amp;itemid=".$itemObj->getVar('itemid')."'><img src='".PUBLISHER_URL."/images/links/delete.png'"." title='"._CO_PUBLISHER_DELETE."' alt='"._CO_PUBLISHER_DELETE."' /></a>";
127 127
         } else {
128 128
             $item['admin'] = '';
129 129
         }
@@ -136,40 +136,40 @@  discard block
 block discarded – undo
136 136
          */
137 137
         $block['archivelink'] = '';
138 138
         if ($options[17] == 1) {
139
-            $block['archivelink'] = '| <a href="' . PUBLISHER_URL . '/archive.php">' . _MB_PUBLISHER_ARCHIVE . '</a> ';
139
+            $block['archivelink'] = '| <a href="'.PUBLISHER_URL.'/archive.php">'._MB_PUBLISHER_ARCHIVE.'</a> ';
140 140
         }
141 141
 
142 142
         //TODO: Should we not show link to Anonymous?
143 143
         $block['submitlink'] = '';
144 144
         if ($options[18] == 1 && $xoops->isUser()) {
145
-            $block['submitlink'] = '| <a href="' . PUBLISHER_URL . '/submit.php">' . _MB_PUBLISHER_SUBMITNEWS . '</a> ';
145
+            $block['submitlink'] = '| <a href="'.PUBLISHER_URL.'/submit.php">'._MB_PUBLISHER_SUBMITNEWS.'</a> ';
146 146
         }
147 147
 
148 148
         $item['poster'] = '';
149 149
         if ($options[19] == 1) {
150
-            $item['poster'] = _MB_PUBLISHER_POSTER . ' ' . $itemObj->posterName();
150
+            $item['poster'] = _MB_PUBLISHER_POSTER.' '.$itemObj->posterName();
151 151
         }
152 152
 
153 153
         $item['posttime'] = '';
154 154
         if ($options[20] == 1) {
155 155
             //todo, check this concatenation
156
-            $item['posttime'] = strtolower(XoopsLocale::ON) . ' ' . $itemObj->datesub();
156
+            $item['posttime'] = strtolower(XoopsLocale::ON).' '.$itemObj->datesub();
157 157
         }
158 158
 
159 159
         $item['topic_title'] = '';
160 160
         if ($options[21] == 1) {
161
-            $item['topic_title'] = $itemObj->getCategoryLink() . _MB_PUBLISHER_SP;
161
+            $item['topic_title'] = $itemObj->getCategoryLink()._MB_PUBLISHER_SP;
162 162
         }
163 163
 
164 164
         $item['read'] = '';
165 165
         if ($options[22] == 1) {
166 166
             //todo, check this concatenation
167
-            $item['read'] = '&nbsp;(' . $itemObj->getVar('counter') . ' ' . strtolower(XoopsLocale::READS) . ')';
167
+            $item['read'] = '&nbsp;('.$itemObj->getVar('counter').' '.strtolower(XoopsLocale::READS).')';
168 168
         }
169 169
 
170 170
         $item['more'] = '';
171 171
         if ($itemObj->body() != '' || $itemObj->getVar('comments') > 0) {
172
-            $item['more'] = '<a class="publisher_spotlight_readmore" href="' . $itemObj->getItemUrl() . '">' . _MB_PUBLISHER_READMORE . '</a>';
172
+            $item['more'] = '<a class="publisher_spotlight_readmore" href="'.$itemObj->getItemUrl().'">'._MB_PUBLISHER_READMORE.'</a>';
173 173
         }
174 174
 
175 175
         $comments = $itemObj->getVar('comments');
@@ -178,23 +178,23 @@  discard block
 block discarded – undo
178 178
                 //shows 1 comment instead of 1 comm. if comments ==1
179 179
                 //langugage file modified accordingly
180 180
                 if ($comments == 1) {
181
-                    $item['comment'] = '&nbsp;' . _MB_PUBLISHER_ONECOMMENT . '&nbsp;';
181
+                    $item['comment'] = '&nbsp;'._MB_PUBLISHER_ONECOMMENT.'&nbsp;';
182 182
                 } else {
183
-                    $item['comment'] = '&nbsp;' . $comments . '&nbsp;' . _MB_PUBLISHER_COMMENTS . '&nbsp;';
183
+                    $item['comment'] = '&nbsp;'.$comments.'&nbsp;'._MB_PUBLISHER_COMMENTS.'&nbsp;';
184 184
                 }
185 185
             } else {
186
-                $item['comment'] = '&nbsp;' . _MB_PUBLISHER_NO_COMMENTS . '&nbsp;';
186
+                $item['comment'] = '&nbsp;'._MB_PUBLISHER_NO_COMMENTS.'&nbsp;';
187 187
             }
188 188
         }
189 189
 
190 190
         $item['print'] = '';
191 191
         if ($options[24] == 1) {
192
-            $item['print'] = '<a href="' . PublisherUtils::seoGenUrl("print", $itemObj->getVar('itemid'), $itemObj->getVar('short_url')) . '" rel="nofollow"><img src="' . PUBLISHER_URL . '/images/links/print.gif" title="' . _CO_PUBLISHER_PRINT . '" alt="' . _CO_PUBLISHER_PRINT . '" /></a>&nbsp;';
192
+            $item['print'] = '<a href="'.PublisherUtils::seoGenUrl("print", $itemObj->getVar('itemid'), $itemObj->getVar('short_url')).'" rel="nofollow"><img src="'.PUBLISHER_URL.'/images/links/print.gif" title="'._CO_PUBLISHER_PRINT.'" alt="'._CO_PUBLISHER_PRINT.'" /></a>&nbsp;';
193 193
         }
194 194
 
195 195
         $item['pdf'] = '';
196 196
         if ($options[25] == 1) {
197
-            $item['pdf'] = "<a href='" . PUBLISHER_URL . "/makepdf.php?itemid=" . $itemObj->getVar('itemid'). "' rel='nofollow'><img src='" . PUBLISHER_URL . "/images/links/pdf.gif' title='" . _CO_PUBLISHER_PDF . "' alt='" . _CO_PUBLISHER_PDF . "' /></a>&nbsp;";
197
+            $item['pdf'] = "<a href='".PUBLISHER_URL."/makepdf.php?itemid=".$itemObj->getVar('itemid')."' rel='nofollow'><img src='".PUBLISHER_URL."/images/links/pdf.gif' title='"._CO_PUBLISHER_PDF."' alt='"._CO_PUBLISHER_PDF."' /></a>&nbsp;";
198 198
         }
199 199
 
200 200
         $item['email'] = '';
@@ -203,12 +203,12 @@  discard block
 block discarded – undo
203 203
             $subject = $itemObj->_convert_for_japanese($subject);
204 204
             $maillink = PublisherUtils::tellafriend($subject);
205 205
 
206
-            $item['email'] = '<a href="' . $maillink . '"><img src="' . PUBLISHER_URL . '/images/links/friend.gif" title="' . _CO_PUBLISHER_MAIL . '" alt="' . _CO_PUBLISHER_MAIL . '" /></a>&nbsp;';
206
+            $item['email'] = '<a href="'.$maillink.'"><img src="'.PUBLISHER_URL.'/images/links/friend.gif" title="'._CO_PUBLISHER_MAIL.'" alt="'._CO_PUBLISHER_MAIL.'" /></a>&nbsp;';
207 207
         }
208 208
 
209 209
         $block['morelink'] = '';
210 210
         if ($options[27] == 1) {
211
-            $block['morelink'] = '<a href="' . PUBLISHER_URL . '/index.php">' . _MB_PUBLISHER_MORE_ITEMS . '</a> ';
211
+            $block['morelink'] = '<a href="'.PUBLISHER_URL.'/index.php">'._MB_PUBLISHER_MORE_ITEMS.'</a> ';
212 212
         }
213 213
 
214 214
         $block['latestnews_scroll'] = false;
@@ -249,24 +249,24 @@  discard block
 block discarded – undo
249 249
     $tabletag4 = '</td></tr>';
250 250
 
251 251
     $form = "<table border='0' cellpadding='0' cellspacing='0'>";
252
-    $form .= $tabletag3 . _MB_PUBLISHER_GENERALCONFIG . $tabletag4; // General Options
253
-    $form .= $tabletag1 . _MB_PUBLISHER_FIRST . $tabletag2;
254
-    $form .= "<input type='text' name='options[]' value='" . $options[0] . "' size='4'>&nbsp;" . _MB_PUBLISHER_ITEMS . "</td></tr>";
255
-    $form .= $tabletag1 . _MB_PUBLISHER_DISP . $tabletag2;
256
-    $form .= "<input type='text' name='options[]' value='" . $options[1] . "' size='4'>&nbsp;" . _MB_PUBLISHER_ITEMS . "</td></tr>";
257
-    $form .= $tabletag1 . _MB_PUBLISHER_COLUMNS . $tabletag2;
258
-    $form .= "<input type='text' name='options[]' value='" . $options[2] . "' size='4'>&nbsp;" . _MB_PUBLISHER_COLUMN . "</td></tr>";
259
-    $form .= $tabletag1 . _MB_PUBLISHER_TEXTLENGTH . $tabletag2;
260
-    $form .= "<input type='text' name='options[]' value='" . $options[3] . "' size='4'>&nbsp;" . _MB_PUBLISHER_LETTER . "</td></tr>";
261
-    $form .= $tabletag1 . _MB_PUBLISHER_SELECTEDSTORIES . $tabletag2;
262
-    $form .= "<input type='text' name='options[]' value='" . $options[4] . "' size='16'></td></tr>";
263
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLL . $tabletag2;
252
+    $form .= $tabletag3._MB_PUBLISHER_GENERALCONFIG.$tabletag4; // General Options
253
+    $form .= $tabletag1._MB_PUBLISHER_FIRST.$tabletag2;
254
+    $form .= "<input type='text' name='options[]' value='".$options[0]."' size='4'>&nbsp;"._MB_PUBLISHER_ITEMS."</td></tr>";
255
+    $form .= $tabletag1._MB_PUBLISHER_DISP.$tabletag2;
256
+    $form .= "<input type='text' name='options[]' value='".$options[1]."' size='4'>&nbsp;"._MB_PUBLISHER_ITEMS."</td></tr>";
257
+    $form .= $tabletag1._MB_PUBLISHER_COLUMNS.$tabletag2;
258
+    $form .= "<input type='text' name='options[]' value='".$options[2]."' size='4'>&nbsp;"._MB_PUBLISHER_COLUMN."</td></tr>";
259
+    $form .= $tabletag1._MB_PUBLISHER_TEXTLENGTH.$tabletag2;
260
+    $form .= "<input type='text' name='options[]' value='".$options[3]."' size='4'>&nbsp;"._MB_PUBLISHER_LETTER."</td></tr>";
261
+    $form .= $tabletag1._MB_PUBLISHER_SELECTEDSTORIES.$tabletag2;
262
+    $form .= "<input type='text' name='options[]' value='".$options[4]."' size='16'></td></tr>";
263
+    $form .= $tabletag1._MB_PUBLISHER_SCROLL.$tabletag2;
264 264
     $form .= publisher_mk_chkbox($options, 5);
265
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLHEIGHT . $tabletag2;
266
-    $form .= "<input type='text' name='options[]' value='" . $options[6] . "' size='4'></td></tr>";
267
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLSPEED . $tabletag2;
268
-    $form .= "<input type='text' name='options[]' value='" . $options[7] . "' size='4'></td></tr>";
269
-    $form .= $tabletag1 . _MB_PUBLISHER_SCROLLDIR . $tabletag2;
265
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLHEIGHT.$tabletag2;
266
+    $form .= "<input type='text' name='options[]' value='".$options[6]."' size='4'></td></tr>";
267
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLSPEED.$tabletag2;
268
+    $form .= "<input type='text' name='options[]' value='".$options[7]."' size='4'></td></tr>";
269
+    $form .= $tabletag1._MB_PUBLISHER_SCROLLDIR.$tabletag2;
270 270
 
271 271
     $form .= "<select size='1' name='options[8]'>";
272 272
 
@@ -280,90 +280,90 @@  discard block
 block discarded – undo
280 280
     }
281 281
     $form .= "</select></td></tr>";
282 282
 
283
-    $form .= $tabletag1 . _MB_PUBLISHER_ORDER . $tabletag2;
283
+    $form .= $tabletag1._MB_PUBLISHER_ORDER.$tabletag2;
284 284
 
285 285
     $form .= "<select name='options[9]'>";
286 286
     $form .= "<option value='datesub'";
287 287
     if ($options[9] === "datesub") {
288 288
         $form .= " selected='selected'";
289 289
     }
290
-    $form .= ">" . _MB_PUBLISHER_DATE . "</option>";
290
+    $form .= ">"._MB_PUBLISHER_DATE."</option>";
291 291
 
292 292
     $form .= "<option value='counter'";
293 293
     if ($options[9] === "counter") {
294 294
         $form .= " selected='selected'";
295 295
     }
296
-    $form .= ">" . _MB_PUBLISHER_HITS . "</option>";
296
+    $form .= ">"._MB_PUBLISHER_HITS."</option>";
297 297
 
298 298
     $form .= "<option value='weight'";
299 299
     if ($options[9] === "weight") {
300 300
         $form .= " selected='selected'";
301 301
     }
302
-    $form .= ">" . _MB_PUBLISHER_WEIGHT . "</option>";
302
+    $form .= ">"._MB_PUBLISHER_WEIGHT."</option>";
303 303
 
304 304
     $form .= "</select></td></tr>";
305 305
 
306
-    $form .= $tabletag3 . _MB_PUBLISHER_PHOTOSCONFIG . $tabletag4; // Photos Options
307
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGDISPLAY . $tabletag2;
306
+    $form .= $tabletag3._MB_PUBLISHER_PHOTOSCONFIG.$tabletag4; // Photos Options
307
+    $form .= $tabletag1._MB_PUBLISHER_IMGDISPLAY.$tabletag2;
308 308
     $form .= publisher_mk_chkbox($options, 10);
309
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGWIDTH . $tabletag2;
310
-    $form .= "<input type='text' name='options[]' value='" . $options[11] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . "</td></tr>";
311
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGHEIGHT . $tabletag2;
312
-    $form .= "<input type='text' name='options[]' value='" . $options[12] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . "</td></tr>";
313
-    $form .= $tabletag1 . _MB_PUBLISHER_BORDER . $tabletag2;
314
-    $form .= "<input type='text' name='options[]' value='" . $options[13] . "' size='4'>&nbsp;" . _MB_PUBLISHER_PIXEL . "</td></tr>";
315
-    $form .= $tabletag1 . _MB_PUBLISHER_BORDERCOLOR . $tabletag2;
316
-    $form .= "<input type='text' name='options[]' value='" . $options[14] . "' size='8'></td></tr>";
317
-    $form .= $tabletag1 . _MB_PUBLISHER_IMGPOSITION . $tabletag2;
309
+    $form .= $tabletag1._MB_PUBLISHER_IMGWIDTH.$tabletag2;
310
+    $form .= "<input type='text' name='options[]' value='".$options[11]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL."</td></tr>";
311
+    $form .= $tabletag1._MB_PUBLISHER_IMGHEIGHT.$tabletag2;
312
+    $form .= "<input type='text' name='options[]' value='".$options[12]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL."</td></tr>";
313
+    $form .= $tabletag1._MB_PUBLISHER_BORDER.$tabletag2;
314
+    $form .= "<input type='text' name='options[]' value='".$options[13]."' size='4'>&nbsp;"._MB_PUBLISHER_PIXEL."</td></tr>";
315
+    $form .= $tabletag1._MB_PUBLISHER_BORDERCOLOR.$tabletag2;
316
+    $form .= "<input type='text' name='options[]' value='".$options[14]."' size='8'></td></tr>";
317
+    $form .= $tabletag1._MB_PUBLISHER_IMGPOSITION.$tabletag2;
318 318
     $form .= "<select name='options[]'>";
319 319
     $form .= "<option value='LEFT'";
320 320
     if ($options[15] === 'LEFT') {
321 321
         $form .= " selected='selected'";
322 322
     }
323
-    $form .= '>' . XoopsLocale::LEFT . "</option>\n";
323
+    $form .= '>'.XoopsLocale::LEFT."</option>\n";
324 324
 
325 325
     $form .= "<option value='CENTER'";
326 326
     if ($options[15] === 'CENTER') {
327 327
         $form .= " selected='selected'";
328 328
     }
329
-    $form .= '>' . XoopsLocale::CENTER . "</option>\n";
329
+    $form .= '>'.XoopsLocale::CENTER."</option>\n";
330 330
 
331 331
     $form .= "<option value='RIGHT'";
332 332
     if ($options[15] === 'RIGHT') {
333 333
         $form .= " selected='selected'";
334 334
     }
335
-    $form .= '>' . XoopsLocale::RIGHT . '</option>';
335
+    $form .= '>'.XoopsLocale::RIGHT.'</option>';
336 336
     $form .= "</select></td></tr>";
337 337
 
338
-    $form .= $tabletag3 . _MB_PUBLISHER_LINKSCONFIG . $tabletag4; // Links Options
339
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_TOPICLINK . $tabletag2;
338
+    $form .= $tabletag3._MB_PUBLISHER_LINKSCONFIG.$tabletag4; // Links Options
339
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_TOPICLINK.$tabletag2;
340 340
     $form .= publisher_mk_chkbox($options, 16);
341
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_ARCHIVELINK . $tabletag2;
341
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_ARCHIVELINK.$tabletag2;
342 342
     $form .= publisher_mk_chkbox($options, 17);
343
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_SUBMITLINK . $tabletag2;
343
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_SUBMITLINK.$tabletag2;
344 344
     $form .= publisher_mk_chkbox($options, 18);
345
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_POSTEDBY . $tabletag2;
345
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_POSTEDBY.$tabletag2;
346 346
     $form .= publisher_mk_chkbox($options, 19);
347
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_POSTTIME . $tabletag2;
347
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_POSTTIME.$tabletag2;
348 348
     $form .= publisher_mk_chkbox($options, 20);
349
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_TOPICTITLE . $tabletag2;
349
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_TOPICTITLE.$tabletag2;
350 350
     $form .= publisher_mk_chkbox($options, 21);
351
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_READ . $tabletag2;
351
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_READ.$tabletag2;
352 352
     $form .= publisher_mk_chkbox($options, 22);
353
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_COMMENT . $tabletag2;
353
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_COMMENT.$tabletag2;
354 354
     $form .= publisher_mk_chkbox($options, 23);
355
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_PRINT . $tabletag2;
355
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_PRINT.$tabletag2;
356 356
     $form .= publisher_mk_chkbox($options, 24);
357
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_PDF . $tabletag2;
357
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_PDF.$tabletag2;
358 358
     $form .= publisher_mk_chkbox($options, 25);
359
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_EMAIL . $tabletag2;
359
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_EMAIL.$tabletag2;
360 360
     $form .= publisher_mk_chkbox($options, 26);
361
-    $form .= $tabletag1 . _MB_PUBLISHER_DISPLAY_MORELINK . $tabletag2;
361
+    $form .= $tabletag1._MB_PUBLISHER_DISPLAY_MORELINK.$tabletag2;
362 362
     $form .= publisher_mk_chkbox($options, 27);
363 363
 
364 364
 
365
-    $form .= $tabletag3 . _MB_PUBLISHER_TEMPLATESCONFIG . $tabletag4; // Templates Options
366
-    $form .= $tabletag1 . _MB_PUBLISHER_TEMPLATE . $tabletag2;
365
+    $form .= $tabletag3._MB_PUBLISHER_TEMPLATESCONFIG.$tabletag4; // Templates Options
366
+    $form .= $tabletag1._MB_PUBLISHER_TEMPLATE.$tabletag2;
367 367
     $form .= "<select size='1' name='options[28]'>";
368 368
 
369 369
     $templates = array('normal' => _MB_PUBLISHER_TEMPLATE_NORMAL, 'extended' => _MB_PUBLISHER_TEMPLATE_EXTENDED, 'ticker' => _MB_PUBLISHER_TEMPLATE_TICKER, 'slider1' => _MB_PUBLISHER_TEMPLATE_SLIDER1, 'slider2' => _MB_PUBLISHER_TEMPLATE_SLIDER2);
@@ -377,8 +377,8 @@  discard block
 block discarded – undo
377 377
     $form .= "</select></td></tr>";
378 378
 
379 379
     //Select Which Categories To Show
380
-    $form .= $tabletag3 . _MB_PUBLISHER_TOPICSCONFIG . $tabletag4; // Topics Options
381
-    $form .= $tabletag1 . _MB_PUBLISHER_TOPICSDISPLAY . $tabletag2;
380
+    $form .= $tabletag3._MB_PUBLISHER_TOPICSCONFIG.$tabletag4; // Topics Options
381
+    $form .= $tabletag1._MB_PUBLISHER_TOPICSDISPLAY.$tabletag2;
382 382
     $form .= PublisherUtils::createCategorySelect($options[29], 0, true, 'options[29]');
383 383
     $form .= '</td></tr>';
384 384
 
@@ -392,12 +392,12 @@  discard block
 block discarded – undo
392 392
     if ($options[$number] == 1) {
393 393
         $chk = " checked='checked'";
394 394
     }
395
-    $chkbox = "<input type='radio' name='options[{$number}]' value='1'" . $chk . " />&nbsp;" . XoopsLocale::YES . "&nbsp;&nbsp;";
395
+    $chkbox = "<input type='radio' name='options[{$number}]' value='1'".$chk." />&nbsp;".XoopsLocale::YES."&nbsp;&nbsp;";
396 396
     $chk = "";
397 397
     if ($options[$number] == 0) {
398 398
         $chk = " checked='checked'";
399 399
     }
400
-    $chkbox .= "<input type='radio' name='options[{$number}]' value='0'" . $chk . " />&nbsp;" . XoopsLocale::NO . "</td></tr>";
400
+    $chkbox .= "<input type='radio' name='options[{$number}]' value='0'".$chk." />&nbsp;".XoopsLocale::NO."</td></tr>";
401 401
     return $chkbox;
402 402
 }
403 403
 
@@ -407,16 +407,16 @@  discard block
 block discarded – undo
407 407
     if ($options[$number] == 2) {
408 408
         $slc = " checked='checked'";
409 409
     }
410
-    $select = "<input type='radio' name='options[{$number}]' value='2'" . $slc . " />&nbsp;" . XoopsLocale::LEFT . "&nbsp;&nbsp;";
410
+    $select = "<input type='radio' name='options[{$number}]' value='2'".$slc." />&nbsp;".XoopsLocale::LEFT."&nbsp;&nbsp;";
411 411
     $slc = "";
412 412
     if ($options[$number] == 1) {
413 413
         $slc = " checked='checked'";
414 414
     }
415
-    $select .= "<input type='radio' name='options[{$number}]' value='1'" . $slc . " />&nbsp;" . XoopsLocale::CENTER . "&nbsp;&nbsp;";
415
+    $select .= "<input type='radio' name='options[{$number}]' value='1'".$slc." />&nbsp;".XoopsLocale::CENTER."&nbsp;&nbsp;";
416 416
     $slc = "";
417 417
     if ($options[$number] == 0) {
418 418
         $slc = " checked='checked'";
419 419
     }
420
-    $select .= "<input type='radio' name='options[{$number}]' value='0'" . $slc . " />&nbsp;" . XoopsLocale::RIGHT . "</td></tr>";
420
+    $select .= "<input type='radio' name='options[{$number}]' value='0'".$slc." />&nbsp;".XoopsLocale::RIGHT."</td></tr>";
421 421
     return $select;
422 422
 }
Please login to merge, or discard this patch.
htdocs/modules/publisher/blocks/items_menu.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include_once dirname(__DIR__) . '/include/common.php';
23
+include_once dirname(__DIR__).'/include/common.php';
24 24
 
25 25
 function publisher_items_menu_show($options)
26 26
 {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
     // Getting all top cats
32 32
     $block_categoriesObj = $publisher->getCategoryHandler()->getCategories(0, 0, 0);
33 33
 
34
-    if (count($block_categoriesObj) == 0) return $block;
34
+    if (count($block_categoriesObj) == 0) {
35
+        return $block;
36
+    }
35 37
 
36 38
     // Are we in Publisher ?
37 39
     $block['inModule'] = $publisher->isCurrentModule();
Please login to merge, or discard this patch.
htdocs/modules/publisher/class/file.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  * @version         $Id$
27 27
  */
28 28
 
29
-include_once dirname(__DIR__) . '/include/common.php';
29
+include_once dirname(__DIR__).'/include/common.php';
30 30
 
31 31
 // File status
32 32
 define("_PUBLISHER_STATUS_FILE_NOTSET", -1);
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
         if (!is_dir(PublisherUtils::getUploadDir())) {
115 115
             mkdir(PublisherUtils::getUploadDir(), 0757);
116 116
         }
117
-        $uploader = new XoopsMediaUploader(PublisherUtils::getUploadDir() . '/', $allowed_mimetypes, $maxfilesize, $maxfilewidth, $maxfileheight);
117
+        $uploader = new XoopsMediaUploader(PublisherUtils::getUploadDir().'/', $allowed_mimetypes, $maxfilesize, $maxfilewidth, $maxfileheight);
118 118
         if ($uploader->fetchMedia($post_field)) {
119
-            $uploader->setTargetFileName($itemid . "_" . $uploader->getMediaName());
119
+            $uploader->setTargetFileName($itemid."_".$uploader->getMediaName());
120 120
             if ($uploader->upload()) {
121 121
                 $this->setVar('filename', $uploader->getSavedFileName());
122 122
                 if ($this->getVar('name') == '') {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function getFileUrl()
186 186
     {
187
-        return PublisherUtils::getUploadDir(false) . $this->getVar('filename');
187
+        return PublisherUtils::getUploadDir(false).$this->getVar('filename');
188 188
     }
189 189
 
190 190
     /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function getFilePath()
194 194
     {
195
-        return PublisherUtils::getUploadDir() . $this->getVar('filename');
195
+        return PublisherUtils::getUploadDir().$this->getVar('filename');
196 196
     }
197 197
 
198 198
     /**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function getFileLink()
202 202
     {
203
-        return "<a href='" . PUBLISHER_URL . "/visit.php?fileid=" . $this->getVar('fileid') . "'>" . $this->getVar('name') . "</a>";
203
+        return "<a href='".PUBLISHER_URL."/visit.php?fileid=".$this->getVar('fileid')."'>".$this->getVar('name')."</a>";
204 204
     }
205 205
 
206 206
     /**
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function getItemLink()
210 210
     {
211
-        return "<a href='" . PUBLISHER_URL . "/item.php?itemid=" . $this->getVar('itemid') . "'>" . $this->getVar('name') . "</a>";
211
+        return "<a href='".PUBLISHER_URL."/item.php?itemid=".$this->getVar('itemid')."'>".$this->getVar('name')."</a>";
212 212
     }
213 213
 
214 214
     /**
Please login to merge, or discard this patch.