@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | * @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com> |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | -include \dirname(__DIR__, 2) . '/mainfile.php'; |
|
| 24 | -include __DIR__ . '/include/common.php'; |
|
| 23 | +include \dirname(__DIR__, 2).'/mainfile.php'; |
|
| 24 | +include __DIR__.'/include/common.php'; |
|
| 25 | 25 | $moduleDirName = \basename(__DIR__); |
| 26 | 26 | |
| 27 | 27 | $helper = \XoopsModules\Wggithub\Helper::getInstance(); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $xoBreadcrumbs = []; |
| 31 | 31 | if ($helper->getConfig('show_breadcrumbs')) {
|
| 32 | 32 | if (isset($GLOBALS['xoopsModule']) && \is_object($GLOBALS['xoopsModule'])) {
|
| 33 | - $xoBreadcrumbs[] = ['title' => $GLOBALS['xoopsModule']->getVar('name'), 'link' => \WGGITHUB_URL . '/'];
|
|
| 33 | + $xoBreadcrumbs[] = ['title' => $GLOBALS['xoopsModule']->getVar('name'), 'link' => \WGGITHUB_URL.'/'];
|
|
| 34 | 34 | } |
| 35 | 35 | } |
| 36 | 36 | // Get instance of module |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | // |
| 45 | 45 | $myts = MyTextSanitizer::getInstance(); |
| 46 | 46 | // Default Css Style |
| 47 | -$style = \WGGITHUB_URL . '/assets/css/style.css'; |
|
| 47 | +$style = \WGGITHUB_URL.'/assets/css/style.css'; |
|
| 48 | 48 | // Smarty Default |
| 49 | 49 | $sysPathIcon16 = $GLOBALS['xoopsModule']->getInfo('sysicons16');
|
| 50 | 50 | $sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('sysicons32');
|
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | use XoopsModules\Wggithub; |
| 25 | 25 | use XoopsModules\Wggithub\Constants; |
| 26 | 26 | |
| 27 | -require __DIR__ . '/header.php'; |
|
| 27 | +require __DIR__.'/header.php'; |
|
| 28 | 28 | |
| 29 | 29 | // Define Stylesheet |
| 30 | 30 | $GLOBALS['xoTheme']->addStylesheet($style, null); |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | // Display Navigation |
| 54 | 54 | if ($repositoriesCount > $limit) { |
| 55 | - include_once \XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 56 | - $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'startRepositories', 'op=list&limitRepositories=' . $limit); |
|
| 55 | + include_once \XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 56 | + $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'startRepositories', 'op=list&limitRepositories='.$limit); |
|
| 57 | 57 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 58 | 58 | } |
| 59 | 59 | } else { |
@@ -61,4 +61,4 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | unset($crRepositories); |
| 63 | 63 | |
| 64 | -require __DIR__ . '/footer.php'; |
|
| 64 | +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 | // Request req_id |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | // Display Navigation |
| 57 | 57 | if ($requestsCount > $limit) { |
| 58 | - include_once \XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 59 | - $pagenav = new \XoopsPageNav($requestsCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 58 | + include_once \XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 59 | + $pagenav = new \XoopsPageNav($requestsCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 60 | 60 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 61 | 61 | } |
| 62 | 62 | } else { |
@@ -133,4 +133,4 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | break; |
| 135 | 135 | } |
| 136 | -require __DIR__ . '/footer.php'; |
|
| 136 | +require __DIR__.'/footer.php'; |
|
@@ -47,15 +47,15 @@ discard block |
||
| 47 | 47 | $options = [ |
| 48 | 48 | 'http' => [ |
| 49 | 49 | 'method' => $request->getMethod(), |
| 50 | - 'header' => \implode("\r\n", $headerStr) . "\r\n",
|
|
| 51 | - 'follow_location' => 0, # Github sets the Location header for 201 code too and redirection is not required for us |
|
| 50 | + 'header' => \implode("\r\n", $headerStr)."\r\n",
|
|
| 51 | + 'follow_location' => 0, # Github sets the Location header for 201 code too and redirection is not required for us |
|
| 52 | 52 | 'protocol_version' => 1.1, |
| 53 | 53 | 'ignore_errors' => TRUE, |
| 54 | 54 | ], |
| 55 | 55 | 'ssl' => [ |
| 56 | 56 | 'verify_peer' => TRUE, |
| 57 | - 'cafile' => realpath(__DIR__ . '/../../ca-chain.crt'), |
|
| 58 | - 'disable_compression' => TRUE, # Effective since PHP 5.4.13 |
|
| 57 | + 'cafile' => realpath(__DIR__.'/../../ca-chain.crt'), |
|
| 58 | + 'disable_compression' => TRUE, # Effective since PHP 5.4.13 |
|
| 59 | 59 | ], |
| 60 | 60 | ]; |
| 61 | 61 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $last = ''; |
| 106 | 106 | foreach ($http_response_header as $header) {
|
| 107 | 107 | if (\in_array(\substr($header, 0, 1), [' ', "\t"], TRUE)) {
|
| 108 | - $headers[$last] .= ' ' . \trim($header); # RFC2616, 2.2 |
|
| 108 | + $headers[$last] .= ' '.\trim($header); # RFC2616, 2.2 |
|
| 109 | 109 | } else {
|
| 110 | 110 | list($name, $value) = \explode(':', $header, 2) + [NULL, NULL];
|
| 111 | 111 | $headers[$last = \trim($name)] = \trim($value); |
@@ -54,21 +54,21 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | function xoops_module_update_wggithub($module, $prev_version = null) |
| 56 | 56 | {
|
| 57 | - require \dirname(__DIR__) . '/preloads/autoloader.php'; |
|
| 57 | + require \dirname(__DIR__).'/preloads/autoloader.php'; |
|
| 58 | 58 | |
| 59 | 59 | $moduleDirName = $module->dirname(); |
| 60 | 60 | |
| 61 | 61 | //wggithub_check_db($module); |
| 62 | 62 | |
| 63 | 63 | //check upload directory |
| 64 | - include_once __DIR__ . '/install.php'; |
|
| 64 | + include_once __DIR__.'/install.php'; |
|
| 65 | 65 | xoops_module_install_wggithub($module); |
| 66 | 66 | |
| 67 | 67 | // update DB corresponding to sql/mysql.sql |
| 68 | 68 | $configurator = new Configurator(); |
| 69 | 69 | $migrate = new Migrate($configurator); |
| 70 | 70 | |
| 71 | - $fileSql = \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/sql/mysql.sql'; |
|
| 71 | + $fileSql = \XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/sql/mysql.sql'; |
|
| 72 | 72 | // ToDo: add function setDefinitionFile to .\class\libraries\vendor\xoops\xmf\src\Database\Migrate.php |
| 73 | 73 | // Todo: once we are using setDefinitionFile this part has to be adapted |
| 74 | 74 | //$fileYaml = \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/sql/update_' . $moduleDirName . '_migrate.yml'; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | //} catch (\Exception $e) {
|
| 78 | 78 | // as long as this is not done default file has to be created |
| 79 | 79 | $moduleVersion = $module->getInfo('version');
|
| 80 | - $fileYaml = \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . "/sql/{$moduleDirName}_{$moduleVersion}_migrate.yml";
|
|
| 80 | + $fileYaml = \XOOPS_ROOT_PATH.'/modules/'.$moduleDirName."/sql/{$moduleDirName}_{$moduleVersion}_migrate.yml";
|
|
| 81 | 81 | //} |
| 82 | 82 | |
| 83 | 83 | // create a schema file based on sql/mysql.sql |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $skip = false; |
| 95 | 95 | $options = ''; |
| 96 | 96 | // start table definition |
| 97 | - $tableName = $this->getTableName ($line); |
|
| 97 | + $tableName = $this->getTableName($line); |
|
| 98 | 98 | $tables[$tableName] = []; |
| 99 | 99 | $tables[$tableName]['options'] = ''; |
| 100 | 100 | $tables[$tableName]['columns'] = []; |
@@ -140,22 +140,22 @@ discard block |
||
| 140 | 140 | $schema[] = "{$tkey}:\n"; |
| 141 | 141 | foreach ($table as $lkey => $line) { |
| 142 | 142 | if ('keys' == $lkey) { |
| 143 | - $schema[] = $level1 . "keys:\n"; |
|
| 143 | + $schema[] = $level1."keys:\n"; |
|
| 144 | 144 | foreach ($line as $kkey => $kvalue) { |
| 145 | 145 | foreach ($kvalue as $kkey2 => $kvalue2) { |
| 146 | - $schema[] = $level2 . $kkey2 . ":\n"; |
|
| 147 | - $schema[] = $level3 . 'columns: ' . $kvalue2['columns'] . "\n"; |
|
| 148 | - $schema[] = $level3 . 'unique: ' . $kvalue2['unique'] . "\n"; |
|
| 146 | + $schema[] = $level2.$kkey2.":\n"; |
|
| 147 | + $schema[] = $level3.'columns: '.$kvalue2['columns']."\n"; |
|
| 148 | + $schema[] = $level3.'unique: '.$kvalue2['unique']."\n"; |
|
| 149 | 149 | } |
| 150 | 150 | } |
| 151 | 151 | } elseif ('options' == $lkey) { |
| 152 | - $schema[] = $level1 . 'options: ' . $line . "\n"; |
|
| 152 | + $schema[] = $level1.'options: '.$line."\n"; |
|
| 153 | 153 | } else { |
| 154 | - $schema[] = $level1 . 'columns: ' . "\n"; |
|
| 154 | + $schema[] = $level1.'columns: '."\n"; |
|
| 155 | 155 | foreach ($line as $kkey => $kvalue) { |
| 156 | - $schema[] = $level2 . '-' . "\n"; |
|
| 156 | + $schema[] = $level2.'-'."\n"; |
|
| 157 | 157 | foreach ($kvalue as $kkey2 => $kvalue2) { |
| 158 | - $schema[] = $level3 . $kkey2 . ": " . $kvalue2 . "\n"; |
|
| 158 | + $schema[] = $level3.$kkey2.": ".$kvalue2."\n"; |
|
| 159 | 159 | } |
| 160 | 160 | } |
| 161 | 161 | } |
@@ -183,10 +183,10 @@ discard block |
||
| 183 | 183 | * @param string $line |
| 184 | 184 | * @return string|bool |
| 185 | 185 | */ |
| 186 | - private function getTableName (string $line) |
|
| 186 | + private function getTableName(string $line) |
|
| 187 | 187 | { |
| 188 | 188 | |
| 189 | - $arrLine = \explode( '`', $line); |
|
| 189 | + $arrLine = \explode('`', $line); |
|
| 190 | 190 | if (\count($arrLine) > 0) { |
| 191 | 191 | return $arrLine[1]; |
| 192 | 192 | } |
@@ -201,12 +201,12 @@ discard block |
||
| 201 | 201 | * @param string $line |
| 202 | 202 | * @return array|bool |
| 203 | 203 | */ |
| 204 | - private function getColumns (string $line) |
|
| 204 | + private function getColumns(string $line) |
|
| 205 | 205 | { |
| 206 | 206 | |
| 207 | 207 | $columns = []; |
| 208 | 208 | |
| 209 | - $arrCol = \explode( ' ', \trim($line)); |
|
| 209 | + $arrCol = \explode(' ', \trim($line)); |
|
| 210 | 210 | if (\count($arrCol) > 0) { |
| 211 | 211 | $name = \str_replace(['`'], '', $arrCol[0]); |
| 212 | 212 | } else { |
@@ -217,11 +217,11 @@ discard block |
||
| 217 | 217 | $columns['name'] = $name; |
| 218 | 218 | // update quotes |
| 219 | 219 | if (\strpos($attributes, "''") > 0) { |
| 220 | - $attributes = \trim(\str_replace("''", "''''''''" , $attributes)); |
|
| 220 | + $attributes = \trim(\str_replace("''", "''''''''", $attributes)); |
|
| 221 | 221 | } elseif (\strpos($attributes, "'") > 0) { |
| 222 | - $attributes = \trim(\str_replace("'", "''" , $attributes)); |
|
| 222 | + $attributes = \trim(\str_replace("'", "''", $attributes)); |
|
| 223 | 223 | } |
| 224 | - $columns['attributes'] = "' " . $attributes . " '"; |
|
| 224 | + $columns['attributes'] = "' ".$attributes." '"; |
|
| 225 | 225 | |
| 226 | 226 | return $columns; |
| 227 | 227 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | * @param string $options |
| 235 | 235 | * @return void |
| 236 | 236 | */ |
| 237 | - private function getOptions (string $line, string &$options): void |
|
| 237 | + private function getOptions(string $line, string &$options): void |
|
| 238 | 238 | { |
| 239 | 239 | |
| 240 | 240 | $lineText = \trim(\str_replace([')', ';'], '', $line)); |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | if ('' != $options) { |
| 244 | 244 | $options .= ' '; |
| 245 | 245 | } |
| 246 | - $options = "'" . $options . $lineText . "'"; |
|
| 246 | + $options = "'".$options.$lineText."'"; |
|
| 247 | 247 | |
| 248 | 248 | } |
| 249 | 249 | |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | * @param string $line |
| 254 | 254 | * @return array |
| 255 | 255 | */ |
| 256 | - private function getKey (string $line) |
|
| 256 | + private function getKey(string $line) |
|
| 257 | 257 | { |
| 258 | 258 | |
| 259 | 259 | $key = []; |
@@ -276,12 +276,12 @@ discard block |
||
| 276 | 276 | if ('' == $name) { |
| 277 | 277 | $name = $columns; |
| 278 | 278 | } |
| 279 | - if (\strpos($name,' ') > 0) { |
|
| 280 | - $name = "'" . $name . "'"; |
|
| 279 | + if (\strpos($name, ' ') > 0) { |
|
| 280 | + $name = "'".$name."'"; |
|
| 281 | 281 | } |
| 282 | 282 | $key[$name] = []; |
| 283 | - if (\strpos($columns,' ') > 0) { |
|
| 284 | - $columns = "'" . $columns . "'"; |
|
| 283 | + if (\strpos($columns, ' ') > 0) { |
|
| 284 | + $columns = "'".$columns."'"; |
|
| 285 | 285 | } |
| 286 | 286 | $key[$name]['columns'] = $columns; |
| 287 | 287 | $key[$name]['unique'] = $unique; |
@@ -72,9 +72,9 @@ discard block |
||
| 72 | 72 | $moduleDirName = \basename(__DIR__); |
| 73 | 73 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
| 74 | 74 | //in order to be accessable from user and admin area this should be place in language common.php |
| 75 | - if (!\defined('CO_' . $moduleDirNameUpper . '_DELETE_CONFIRM')) { |
|
| 76 | - \define('CO_' . $moduleDirNameUpper . '_DELETE_CONFIRM', 'Confirm delete'); |
|
| 77 | - \define('CO_' . $moduleDirNameUpper . '_DELETE_LABEL', 'Do you really want to delete:'); |
|
| 75 | + if (!\defined('CO_'.$moduleDirNameUpper.'_DELETE_CONFIRM')) { |
|
| 76 | + \define('CO_'.$moduleDirNameUpper.'_DELETE_CONFIRM', 'Confirm delete'); |
|
| 77 | + \define('CO_'.$moduleDirNameUpper.'_DELETE_LABEL', 'Do you really want to delete:'); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | // Get Theme Form |
@@ -82,11 +82,11 @@ discard block |
||
| 82 | 82 | $this->action = \Xmf\Request::getString('REQUEST_URI', '', 'SERVER'); |
| 83 | 83 | } |
| 84 | 84 | if ('' === $this->title) { |
| 85 | - $this->title = \constant('CO_' . $moduleDirNameUpper . '_DELETE_CONFIRM'); |
|
| 85 | + $this->title = \constant('CO_'.$moduleDirNameUpper.'_DELETE_CONFIRM'); |
|
| 86 | 86 | } |
| 87 | 87 | if ('' === $this->label) { |
| 88 | 88 | |
| 89 | - $this->label = \constant('CO_' . $moduleDirNameUpper . '_DELETE_LABEL'); |
|
| 89 | + $this->label = \constant('CO_'.$moduleDirNameUpper.'_DELETE_LABEL'); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | \xoops_load('XoopsFormLoader'); |
@@ -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');
|
@@ -70,8 +70,8 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | // Display Navigation |
| 72 | 72 | if ($releasesCount > $limit) {
|
| 73 | - include_once \XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 74 | - $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 73 | + include_once \XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 74 | + $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 75 | 75 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
|
| 76 | 76 | } |
| 77 | 77 | } else {
|
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $releasesObj->setVar('rel_submitter', Request::getInt('rel_submitter', 0));
|
| 108 | 108 | // Insert Data |
| 109 | 109 | if ($releasesHandler->insert($releasesObj)) {
|
| 110 | - \redirect_header('releases.php?op=list&start=' . $start . '&limit=' . $limit, 2, \_AM_WGGITHUB_FORM_OK);
|
|
| 110 | + \redirect_header('releases.php?op=list&start='.$start.'&limit='.$limit, 2, \_AM_WGGITHUB_FORM_OK);
|
|
| 111 | 111 | } |
| 112 | 112 | // Get Form |
| 113 | 113 | $GLOBALS['xoopsTpl']->assign('error', $releasesObj->getHtmlErrors());
|
@@ -142,10 +142,10 @@ discard block |
||
| 142 | 142 | $customConfirm = new Common\Confirm( |
| 143 | 143 | ['ok' => 1, 'rel_id' => $relId, 'op' => 'delete'], |
| 144 | 144 | $_SERVER['REQUEST_URI'], |
| 145 | - \sprintf(\_AM_WGGITHUB_FORM_SURE_DELETE, $repositoriesObj->getVar('repo_name') . ' - ' . $releasesObj->getVar('rel_name')));
|
|
| 145 | + \sprintf(\_AM_WGGITHUB_FORM_SURE_DELETE, $repositoriesObj->getVar('repo_name').' - '.$releasesObj->getVar('rel_name')));
|
|
| 146 | 146 | $form = $customConfirm->getFormConfirm(); |
| 147 | 147 | $GLOBALS['xoopsTpl']->assign('form', $form->render());
|
| 148 | 148 | } |
| 149 | 149 | break; |
| 150 | 150 | } |
| 151 | -require __DIR__ . '/footer.php'; |
|
| 151 | +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 | $logId = Request::getInt('log_id');
|
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | // Display Navigation |
| 59 | 59 | if ($logsCount > $limit) {
|
| 60 | - include_once \XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 61 | - $pagenav = new \XoopsPageNav($logsCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 60 | + include_once \XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 61 | + $pagenav = new \XoopsPageNav($logsCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 62 | 62 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
|
| 63 | 63 | } |
| 64 | 64 | } else {
|
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $logsObj->setVar('log_submitter', Request::getInt('log_submitter', 0));
|
| 85 | 85 | // Insert Data |
| 86 | 86 | if ($logsHandler->insert($logsObj)) {
|
| 87 | - \redirect_header('logs.php?op=list&start=' . $start . '&limit=' . $limit, 2, \_AM_WGGITHUB_FORM_OK);
|
|
| 87 | + \redirect_header('logs.php?op=list&start='.$start.'&limit='.$limit, 2, \_AM_WGGITHUB_FORM_OK);
|
|
| 88 | 88 | } |
| 89 | 89 | // Get Form |
| 90 | 90 | $GLOBALS['xoopsTpl']->assign('error', $logsObj->getHtmlErrors());
|
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $customConfirm = new Common\Confirm( |
| 119 | 119 | ['ok' => 1, 'log_id' => $logId, 'op' => 'delete'], |
| 120 | 120 | $_SERVER['REQUEST_URI'], |
| 121 | - \sprintf(\_AM_WGGITHUB_FORM_SURE_DELETE, $logsObj->getVar('log_id') . ': ' . $logsObj->getVar('log_details')));
|
|
| 121 | + \sprintf(\_AM_WGGITHUB_FORM_SURE_DELETE, $logsObj->getVar('log_id').': '.$logsObj->getVar('log_details')));
|
|
| 122 | 122 | $form = $customConfirm->getFormConfirm(); |
| 123 | 123 | $GLOBALS['xoopsTpl']->assign('form', $form->render());
|
| 124 | 124 | } |
@@ -144,4 +144,4 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | break; |
| 146 | 146 | } |
| 147 | -require __DIR__ . '/footer.php'; |
|
| 147 | +require __DIR__.'/footer.php'; |
|