@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | $relId = Request::getInt('rel_id'); |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | } |
73 | 73 | // Display Navigation |
74 | 74 | if ($releasesCount > $limit) { |
75 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
76 | - $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
75 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
76 | + $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
77 | 77 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
78 | 78 | } |
79 | 79 | } else { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $releasesObj->setVar('rel_submitter', Request::getInt('rel_submitter', 0)); |
120 | 120 | // Insert Data |
121 | 121 | if ($releasesHandler->insert($releasesObj)) { |
122 | - \redirect_header('releases.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
122 | + \redirect_header('releases.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
123 | 123 | } |
124 | 124 | // Get Form |
125 | 125 | $GLOBALS['xoopsTpl']->assign('error', $releasesObj->getHtmlErrors()); |
@@ -161,4 +161,4 @@ discard block |
||
161 | 161 | } |
162 | 162 | break; |
163 | 163 | } |
164 | -require __DIR__ . '/footer.php'; |
|
164 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | $rmId = Request::getInt('rm_id'); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $in[] = $i; |
66 | 66 | } |
67 | 67 | } |
68 | - $crReadmes->add(new Criteria('rm_repoid', '(' . implode(',', $in) . ')', 'IN')); |
|
68 | + $crReadmes->add(new Criteria('rm_repoid', '('.implode(',', $in).')', 'IN')); |
|
69 | 69 | } |
70 | 70 | $crReadmes->setStart($start); |
71 | 71 | $crReadmes->setLimit($limit); |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | } |
84 | 84 | // Display Navigation |
85 | 85 | if ($readmesCount > $limit) { |
86 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
87 | - $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
86 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
87 | + $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
88 | 88 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
89 | 89 | } |
90 | 90 | } else { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $readmesObj->setVar('rm_submitter', Request::getInt('rm_submitter', 0)); |
131 | 131 | // Insert Data |
132 | 132 | if ($readmesHandler->insert($readmesObj)) { |
133 | - \redirect_header('readmes.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
133 | + \redirect_header('readmes.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
134 | 134 | } |
135 | 135 | // Get Form |
136 | 136 | $GLOBALS['xoopsTpl']->assign('error', $readmesObj->getHtmlErrors()); |
@@ -172,4 +172,4 @@ discard block |
||
172 | 172 | } |
173 | 173 | break; |
174 | 174 | } |
175 | -require __DIR__ . '/footer.php'; |
|
175 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | $repoId = Request::getInt('repo_id'); |
@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | } |
81 | 81 | // Display Navigation |
82 | 82 | if ($repositoriesCount > $limit) { |
83 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
84 | - $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
83 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
84 | + $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
85 | 85 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
86 | 86 | } |
87 | 87 | } else { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $repositoriesObj->setVar('repo_submitter', Request::getInt('repo_submitter', 0)); |
133 | 133 | // Insert Data |
134 | 134 | if ($repositoriesHandler->insert($repositoriesObj)) { |
135 | - \redirect_header('repositories.php?op=list&start=' . $start . '&limit=' . $limit, 2, _AM_WGGITHUB_FORM_OK); |
|
135 | + \redirect_header('repositories.php?op=list&start='.$start.'&limit='.$limit, 2, _AM_WGGITHUB_FORM_OK); |
|
136 | 136 | } |
137 | 137 | // Get Form |
138 | 138 | $GLOBALS['xoopsTpl']->assign('error', $repositoriesObj->getHtmlErrors()); |
@@ -174,4 +174,4 @@ discard block |
||
174 | 174 | } |
175 | 175 | break; |
176 | 176 | } |
177 | -require __DIR__ . '/footer.php'; |
|
177 | +require __DIR__.'/footer.php'; |