Completed
Push — master ( 804154...96da4e )
by Michael
02:32
created
admin/admin.article.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 // URL: http://xoops.org                         //
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27
-include_once __DIR__ . '/admin_header.php';
27
+include_once __DIR__.'/admin_header.php';
28 28
 
29 29
 xoops_cp_header();
30 30
 $indexAdmin = new ModuleAdmin();
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
  * This is a tricky fix for incomplete solution of module cone
37 37
  * it is expected to have a better solution in article 1.0
38 38
  */
39
-require XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
39
+require XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php';
40 40
 //planet_adminmenu(3);
41 41
 
42 42
 $article_handler = xoops_getModuleHandler('article', $GLOBALS['moddirname']);
43 43
 if (!empty($xoopsModuleConfig['article_expire'])) {
44
-    $criteria = new Criteria('art_time', time() - $xoopsModuleConfig['article_expire'] * 60 * 60 * 24, '<');
44
+    $criteria = new Criteria('art_time', time()-$xoopsModuleConfig['article_expire']*60*60*24, '<');
45 45
     if (!empty($_GET['purge'])) {
46 46
         $crit = new CriteriaCompo($criteria);
47 47
         $crit->add(new Criteria('art_comments', 0));
@@ -51,18 +51,18 @@  discard block
 block discarded – undo
51 51
         }
52 52
     }
53 53
     $article_count_expire = $article_handler->getCount($criteria);
54
-} else {
54
+}else {
55 55
     $article_count_expire = 0;
56 56
 }
57 57
 $article_count = $article_handler->getCount();
58 58
 
59
-echo "<fieldset><legend style=\"font-weight: bold; color: #900;\">" . planet_constant('AM_ARTICLES') . '</legend>';
59
+echo "<fieldset><legend style=\"font-weight: bold; color: #900;\">".planet_constant('AM_ARTICLES').'</legend>';
60 60
 echo "<div style=\"padding: 8px;\">";
61
-echo "<br clear=\"all\" />" . planet_constant('AM_COUNT') . ': ' . $article_count;
61
+echo "<br clear=\"all\" />".planet_constant('AM_COUNT').': '.$article_count;
62 62
 echo "<br clear=\"all\" />";
63
-if ($article_count_expire > 0) {
64
-    echo "<br clear=\"all\" /><a href=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname']
65
-         . "/admin/admin.article.php?purge=1\" >" . planet_constant('AM_EXPIRED') . ': ' . $article_count_expire
63
+if ($article_count_expire>0) {
64
+    echo "<br clear=\"all\" /><a href=\"".XOOPS_URL.'/modules/'.$GLOBALS['moddirname']
65
+         . "/admin/admin.article.php?purge=1\" >".planet_constant('AM_EXPIRED').': '.$article_count_expire
66 66
          . '</a>';
67 67
     echo "<br clear=\"all\" />";
68 68
 }
Please login to merge, or discard this patch.