@@ -117,7 +117,7 @@ |
||
| 117 | 117 | if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { |
| 118 | 118 | $uploader->fetchMedia($_POST['xoops_upload_file'][0]); |
| 119 | 119 | if (!$uploader->upload()) { |
| 120 | - $errors =& $uploader->getErrors(); |
|
| 120 | + $errors = & $uploader->getErrors(); |
|
| 121 | 121 | redirect_header('javascript:history.go(-1)', 3, $errors); |
| 122 | 122 | } else { |
| 123 | 123 | $modulesObj->setVar('mod_image', $uploader->getSavedFileName()); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $modversion['release_info'] = 'README'; |
| 41 | 41 | $modversion['release_file'] = 'https://github.com/txmodxoops/tdmcreate-1.91/releases'; |
| 42 | 42 | $modversion['manual'] = 'MANUAL'; |
| 43 | -$modversion['manual_file'] = XOOPS_URL . "/modules/{$moduleDirName}/docs/manual.txt"; |
|
| 43 | +$modversion['manual_file'] = XOOPS_URL."/modules/{$moduleDirName}/docs/manual.txt"; |
|
| 44 | 44 | $modversion['image'] = "assets/images/{$moduleDirName}_logo.png"; |
| 45 | 45 | $modversion['dirname'] = "{$moduleDirName}"; |
| 46 | 46 | // Frameworks icons |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | // Module icons |
| 51 | 51 | $modversion['modicons16'] = 'assets/icons/16'; |
| 52 | 52 | $modversion['modicons32'] = 'assets/icons/32'; |
| 53 | -$modversion['targetdir'] = XOOPS_UPLOAD_PATH . "/{$moduleDirName}/repository/"; |
|
| 53 | +$modversion['targetdir'] = XOOPS_UPLOAD_PATH."/{$moduleDirName}/repository/"; |
|
| 54 | 54 | $modversion['module_website_url'] = 'https://github.com/txmodxoops/tdmcreate-1.91'; |
| 55 | 55 | $modversion['module_website_name'] = 'GitHub Txmodx Xoops'; |
| 56 | 56 | $modversion['min_php'] = '5.5'; |
@@ -86,17 +86,17 @@ discard block |
||
| 86 | 86 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
| 87 | 87 | // Tables created by sql file (without prefix!) |
| 88 | 88 | $modversion['tables'] = [ |
| 89 | - $moduleDirName . '_' . 'settings', |
|
| 90 | - $moduleDirName . '_' . 'modules', |
|
| 91 | - $moduleDirName . '_' . 'tables', |
|
| 92 | - $moduleDirName . '_' . 'fields', |
|
| 93 | - $moduleDirName . '_' . 'languages', |
|
| 94 | - $moduleDirName . '_' . 'fieldtype', |
|
| 95 | - $moduleDirName . '_' . 'fieldattributes', |
|
| 96 | - $moduleDirName . '_' . 'fieldnull', |
|
| 97 | - $moduleDirName . '_' . 'fieldkey', |
|
| 98 | - $moduleDirName . '_' . 'fieldelements', |
|
| 99 | - $moduleDirName . '_' . 'morefiles' |
|
| 89 | + $moduleDirName.'_'.'settings', |
|
| 90 | + $moduleDirName.'_'.'modules', |
|
| 91 | + $moduleDirName.'_'.'tables', |
|
| 92 | + $moduleDirName.'_'.'fields', |
|
| 93 | + $moduleDirName.'_'.'languages', |
|
| 94 | + $moduleDirName.'_'.'fieldtype', |
|
| 95 | + $moduleDirName.'_'.'fieldattributes', |
|
| 96 | + $moduleDirName.'_'.'fieldnull', |
|
| 97 | + $moduleDirName.'_'.'fieldkey', |
|
| 98 | + $moduleDirName.'_'.'fieldelements', |
|
| 99 | + $moduleDirName.'_'.'morefiles' |
|
| 100 | 100 | ]; |
| 101 | 101 | // Scripts to run upon installation or update |
| 102 | 102 | $modversion['onInstall'] = 'include/install.php'; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $modversion['hasMain'] = 0; |
| 106 | 106 | // Config |
| 107 | 107 | $c = 1; |
| 108 | -$modversion['config'][$c]['name'] = 'break' . $c; |
|
| 108 | +$modversion['config'][$c]['name'] = 'break'.$c; |
|
| 109 | 109 | $modversion['config'][$c]['title'] = '_MI_TDMCREATE_CONFIG_BREAK_GENERAL'; |
| 110 | 110 | $modversion['config'][$c]['description'] = '_MI_TDMCREATE_CONFIG_'; |
| 111 | 111 | $modversion['config'][$c]['formtype'] = 'line_break'; |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $modversion['config'][$c]['valuetype'] = 'int'; |
| 174 | 174 | $modversion['config'][$c]['default'] = 10; |
| 175 | 175 | ++$c; |
| 176 | -$modversion['config'][$c]['name'] = 'break' . $c; |
|
| 176 | +$modversion['config'][$c]['name'] = 'break'.$c; |
|
| 177 | 177 | $modversion['config'][$c]['title'] = '_MI_TDMCREATE_CONFIG_BREAK_REQUIRED'; |
| 178 | 178 | $modversion['config'][$c]['description'] = '_MI_TDMCREATE_CONFIG_'; |
| 179 | 179 | $modversion['config'][$c]['formtype'] = 'line_break'; |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | $modversion['config'][$c]['valuetype'] = 'int'; |
| 314 | 314 | $modversion['config'][$c]['default'] = 0; |
| 315 | 315 | ++$c; |
| 316 | -$modversion['config'][$c]['name'] = 'break' . $c; |
|
| 316 | +$modversion['config'][$c]['name'] = 'break'.$c; |
|
| 317 | 317 | $modversion['config'][$c]['title'] = '_MI_TDMCREATE_CONFIG_BREAK_OPTIONAL'; |
| 318 | 318 | $modversion['config'][$c]['description'] = '_MI_TDMCREATE_CONFIG_'; |
| 319 | 319 | $modversion['config'][$c]['formtype'] = 'line_break'; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js'); |
| 62 | 62 | $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js'); |
| 63 | 63 | $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.$this->uiTheme.'/ui.all.css'); |
| 64 | - $GLOBALS['xoTheme']->addScript('', ['type' => 'text/javascript'], '$(function() { $("#tabs_' . $this->getName() . '").tabs(); });'); |
|
| 64 | + $GLOBALS['xoTheme']->addScript('', ['type' => 'text/javascript'], '$(function() { $("#tabs_'.$this->getName().'").tabs(); });'); |
|
| 65 | 65 | |
| 66 | 66 | $ret = '<div id="tabs_'.$this->getName().'">'.NWLINE; |
| 67 | 67 | $ret .= '<ul>'.NWLINE; |
@@ -272,7 +272,7 @@ |
||
| 272 | 272 | { |
| 273 | 273 | $retTable = []; |
| 274 | 274 | foreach ($this->options as $option) { |
| 275 | - if (1 == $this->getVar('table_' . $option)) { |
|
| 275 | + if (1 == $this->getVar('table_'.$option)) { |
|
| 276 | 276 | array_push($retTable, $option); |
| 277 | 277 | } |
| 278 | 278 | } |
@@ -259,7 +259,7 @@ |
||
| 259 | 259 | { |
| 260 | 260 | $retSet = []; |
| 261 | 261 | foreach ($this->options as $option) { |
| 262 | - if (1 == $this->getVar('set_' . $option)) { |
|
| 262 | + if (1 == $this->getVar('set_'.$option)) { |
|
| 263 | 263 | array_push($retSet, $option); |
| 264 | 264 | } |
| 265 | 265 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $link = $sc->getSmartyDoubleVar('itm', 'link'); |
| 83 | 83 | $glyph = $hc->getHtmlTag('i', ['class' => 'glyphicon glyphicon-home'], '', false, true); |
| 84 | 84 | $anchor = $hc->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home'); |
| 85 | - $into = $hc->getHtmlTag('li', ['class' => 'bc-item'], $anchor, false, true, $t) . PHP_EOL; |
|
| 85 | + $into = $hc->getHtmlTag('li', ['class' => 'bc-item'], $anchor, false, true, $t).PHP_EOL; |
|
| 86 | 86 | $anchorIf = $hc->getHtmlAnchor($link, $title, $title, '', '', '', $t."\t").PHP_EOL; |
| 87 | 87 | $breadcrumb = $sc->getSmartyConditions('itm.link', '', '', $anchorIf, $titleElse, false, false, $t); |
| 88 | 88 | $foreach = $hc->getHtmlTag('li', ['class' => 'bc-item'], $breadcrumb, false, false, $t); |
@@ -96,12 +96,12 @@ |
||
| 96 | 96 | $stuFieldName = strtoupper($fieldName); |
| 97 | 97 | if ((1 == $tableAutoincrement) || (1 == $fields[$f]->getVar('field_user'))) { |
| 98 | 98 | $const = $hc->getSmartyConst($language, $stuFieldName); |
| 99 | - $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const) . PHP_EOL; |
|
| 99 | + $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const).PHP_EOL; |
|
| 100 | 100 | } |
| 101 | 101 | } |
| 102 | - $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL; |
|
| 102 | + $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL; |
|
| 103 | 103 | |
| 104 | - return $hc->getHtmlTag('thead', ['class' => 'outer'], $tr) . PHP_EOL; |
|
| 104 | + return $hc->getHtmlTag('thead', ['class' => 'outer'], $tr).PHP_EOL; |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL; |
| 78 | 78 | $content .= $hc->getHtmlComment('About Page').PHP_EOL; |
| 79 | 79 | $single = $hc->getSmartySingleVar('about'); |
| 80 | - $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL; |
|
| 80 | + $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL; |
|
| 81 | 81 | $content .= $hc->getHtmlComment('Footer').PHP_EOL; |
| 82 | 82 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true); |
| 83 | 83 | |
@@ -85,8 +85,8 @@ |
||
| 85 | 85 | { |
| 86 | 86 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
| 87 | 87 | $form = $hc->getSmartySingleVar('form'); |
| 88 | - $ret = $hc->getHtmlTag('div', ['class' => 'spacer'], $form) . PHP_EOL; |
|
| 89 | - $ret .= $hc->getHtmlTag('br', [], '', false) . PHP_EOL; |
|
| 88 | + $ret = $hc->getHtmlTag('div', ['class' => 'spacer'], $form).PHP_EOL; |
|
| 89 | + $ret .= $hc->getHtmlTag('br', [], '', false).PHP_EOL; |
|
| 90 | 90 | |
| 91 | 91 | return $ret; |
| 92 | 92 | } |