Completed
Push — master ( b1aa17...d7281a )
by Michael
24s queued 21s
created
htdocs/admin.php 1 patch
Spacing   +9 added lines, -9 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 __DIR__ . '/mainfile.php';
23
+include __DIR__.'/mainfile.php';
24 24
 
25 25
 $xoops = Xoops::getInstance();
26 26
 $xoops->isAdminSide = true;
@@ -94,23 +94,23 @@  discard block
 block discarded – undo
94 94
     //$rssurl[] = 'http://sourceforge.net/export/rss2_projnews.php?group_id=41586&rss_fulltext=1';
95 95
     $rssurl[] = 'https://xoops.org/modules/publisher/backend.php';
96 96
     $rssurl = array_unique(array_merge($rssurl, XoopsLocale::getAdminRssUrls()));
97
-    $rssfile = 'admin/rss/adminnews-' . $xoops->getConfig('locale');
97
+    $rssfile = 'admin/rss/adminnews-'.$xoops->getConfig('locale');
98 98
     $xoops->cache()->delete($rssfile);
99
-    $items = $xoops->cache()->cacheRead($rssfile, 'buildRssFeedCache', 24*60*60, $rssurl);
99
+    $items = $xoops->cache()->cacheRead($rssfile, 'buildRssFeedCache', 24 * 60 * 60, $rssurl);
100 100
     if ($items != '') {
101 101
         $ret = '<table class="outer width100">';
102 102
         foreach (array_keys($items) as $i) {
103
-            $ret .= '<tr class="head"><td><a href="' . htmlspecialchars($items[$i]['link']) . '" rel="external">';
104
-            $ret .= htmlspecialchars($items[$i]['title']) . '</a> (' . htmlspecialchars($items[$i]['pubdate']) . ')</td></tr>';
103
+            $ret .= '<tr class="head"><td><a href="'.htmlspecialchars($items[$i]['link']).'" rel="external">';
104
+            $ret .= htmlspecialchars($items[$i]['title']).'</a> ('.htmlspecialchars($items[$i]['pubdate']).')</td></tr>';
105 105
             if ($items[$i]['description'] != "") {
106
-                $ret .= '<tr><td class="odd">' . $items[$i]['description'];
106
+                $ret .= '<tr><td class="odd">'.$items[$i]['description'];
107 107
                 if (!empty($items[$i]['guid'])) {
108
-                    $ret .= '&nbsp;&nbsp;<a href="' . htmlspecialchars($items[$i]['guid']) . '" rel="external" title="">' . XoopsLocale::MORE . '</a>';
108
+                    $ret .= '&nbsp;&nbsp;<a href="'.htmlspecialchars($items[$i]['guid']).'" rel="external" title="">'.XoopsLocale::MORE.'</a>';
109 109
                 }
110 110
                 $ret .= '</td></tr>';
111 111
             } else {
112 112
                 if ($items[$i]['guid'] != "") {
113
-                    $ret .= '<tr><td class="even aligntop"></td><td colspan="2" class="odd"><a href="' . htmlspecialchars($items[$i]['guid']) . '" rel="external">' . _MORE . '</a></td></tr>';
113
+                    $ret .= '<tr><td class="even aligntop"></td><td colspan="2" class="odd"><a href="'.htmlspecialchars($items[$i]['guid']).'" rel="external">'._MORE.'</a></td></tr>';
114 114
                 }
115 115
             }
116 116
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 for ($i = 0; $i < $count; $i++) {
138 138
                     // $_items[$i]['title'] = XoopsLocale::convert_encoding($_items[$i]['title'], XoopsLocale::getCharset(), 'UTF-8');
139 139
                     // $_items[$i]['description'] = XoopsLocale::convert_encoding($_items[$i]['description'], XoopsLocale::getCharset(), 'UTF-8');
140
-                    $items[(string)(strtotime($_items[$i]['pubdate'])) . "-" . (string)(++$cnt)] = $_items[$i];
140
+                    $items[(string)(strtotime($_items[$i]['pubdate']))."-".(string)(++$cnt)] = $_items[$i];
141 141
                 }
142 142
             } else {
143 143
                 echo $rss2parser->getErrors();
Please login to merge, or discard this patch.