@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | function smartobject_addto_show($options) |
| 10 | 10 | { |
| 11 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; |
|
| 12 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartaddto.php'; |
|
| 11 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'; |
|
| 12 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartaddto.php'; |
|
| 13 | 13 | $smartaddto = new XoopsModules\Smartobject\SmartAddTo($options[0]); |
| 14 | 14 | $block = $smartaddto->renderForBlock(); |
| 15 | 15 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | function smartobject_addto_edit($options) |
| 24 | 24 | { |
| 25 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 25 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 26 | 26 | |
| 27 | 27 | $form = ''; |
| 28 | 28 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $layout_select->addOption(1, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION1); |
| 32 | 32 | $layout_select->addOption(2, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION2); |
| 33 | 33 | $layout_select->addOption(3, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION3); |
| 34 | - $form .= $layout_select->getCaption() . ' ' . $layout_select->render() . '<br>'; |
|
| 34 | + $form .= $layout_select->getCaption().' '.$layout_select->render().'<br>'; |
|
| 35 | 35 | |
| 36 | 36 | return $form; |
| 37 | 37 | } |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
| 12 | 12 | |
| 13 | -require_once __DIR__ . '/preloads/autoloader.php'; |
|
| 13 | +require_once __DIR__.'/preloads/autoloader.php'; |
|
| 14 | 14 | |
| 15 | 15 | $modversion['version'] = '1.12'; |
| 16 | 16 | $modversion['module_status'] = 'RC 2'; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | //$modversion['status'] = "Final"; |
| 34 | 34 | $modversion['modicons16'] = 'assets/images/icons/16'; |
| 35 | 35 | $modversion['modicons32'] = 'assets/images/icons/32'; |
| 36 | -$modversion['release_file'] = XOOPS_URL . '/modules/' . $modversion['dirname'] . '/docs/changelog.txt'; |
|
| 36 | +$modversion['release_file'] = XOOPS_URL.'/modules/'.$modversion['dirname'].'/docs/changelog.txt'; |
|
| 37 | 37 | $modversion['module_website_url'] = 'www.xoops.org'; |
| 38 | 38 | $modversion['module_website_name'] = 'XOOPS'; |
| 39 | 39 | $modversion['min_php'] = '5.5'; |
@@ -66,12 +66,12 @@ discard block |
||
| 66 | 66 | // ----- BUG: not read other language file ----- |
| 67 | 67 | //include_once(XOOPS_ROOT_PATH.'/modules/smartobject/language/english/common.php'); |
| 68 | 68 | global $xoopsConfig; |
| 69 | -$common_file = XOOPS_ROOT_PATH . '/modules/smartobject/language/' . $xoopsConfig['language'] . '/common.php'; |
|
| 69 | +$common_file = XOOPS_ROOT_PATH.'/modules/smartobject/language/'.$xoopsConfig['language'].'/common.php'; |
|
| 70 | 70 | if (file_exists($common_file)) { |
| 71 | 71 | $flag_common = true; |
| 72 | 72 | require_once $common_file; |
| 73 | 73 | } else { |
| 74 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/language/english/common.php'; |
|
| 74 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/language/english/common.php'; |
|
| 75 | 75 | } |
| 76 | 76 | // ----- |
| 77 | 77 | |
@@ -15,9 +15,9 @@ discard block |
||
| 15 | 15 | use XoopsModules\Smartobject\SmartObjectController; |
| 16 | 16 | use XoopsModules\Smartobject\SmartObjectTable; |
| 17 | 17 | |
| 18 | -require_once __DIR__ . '/admin_header.php'; |
|
| 19 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 20 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectlink.php'; |
|
| 18 | +require_once __DIR__.'/admin_header.php'; |
|
| 19 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 20 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectlink.php'; |
|
| 21 | 21 | $adminObject = \Xmf\Module\Admin::getInstance(); |
| 22 | 22 | |
| 23 | 23 | $smartobjectLinkHandler = xoops_getModuleHandler('link'); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | switch ($op) { |
| 35 | 35 | |
| 36 | 36 | case 'del': |
| 37 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 37 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 38 | 38 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectLinkHandler); |
| 39 | 39 | $controller->handleObjectDeletion(_AM_SOBJECT_SENT_LINK_DELETE_CONFIRM); |
| 40 | 40 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $linkObj = $smartobjectLinkHandler->get($linkid); |
| 46 | 46 | |
| 47 | 47 | if ($linkObj->isNew()) { |
| 48 | - redirect_header(SMARTOBJECT_URL . 'admin/link.php', 3, _AM_SOBJECT_LINK_NOT_FOUND); |
|
| 48 | + redirect_header(SMARTOBJECT_URL.'admin/link.php', 3, _AM_SOBJECT_LINK_NOT_FOUND); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | smart_xoops_cp_header(); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINK_DISPLAY, _AM_SOBJECT_SENT_LINK_DISPLAY_INFO); |
| 56 | 56 | |
| 57 | - require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
| 57 | + require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
| 58 | 58 | |
| 59 | 59 | // --- |
| 60 | 60 | // 2012-01-01 PHP 5.3: Assigning the return value of new by reference is now deprecated. |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINKS, _AM_SOBJECT_SENT_LINKS_INFO); |
| 83 | 83 | |
| 84 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 84 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 85 | 85 | $objectTable = new XoopsModules\Smartobject\SmartObjectTable($smartobjectLinkHandler, null, ['delete']); |
| 86 | 86 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('date')); |
| 87 | 87 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_FROM, $align = 'left', $width = false, 'getFromInfo')); |
@@ -104,4 +104,4 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | //smart_modFooter(); |
| 106 | 106 | //xoops_cp_footer(); |
| 107 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 107 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | use XoopsModules\Wfdownloads; |
| 11 | -require_once __DIR__ . '/admin_header.php'; |
|
| 12 | -require_once SMARTCONTENT_ROOT_PATH . 'class/dbupdater.php'; |
|
| 11 | +require_once __DIR__.'/admin_header.php'; |
|
| 12 | +require_once SMARTCONTENT_ROOT_PATH.'class/dbupdater.php'; |
|
| 13 | 13 | |
| 14 | 14 | smartcontent_xoops_cp_header(); |
| 15 | 15 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $ret = []; |
| 209 | 209 | global $xoopsDB; |
| 210 | 210 | $catHandler = xoops_getModuleHandler('category', 'wfdownloads'); |
| 211 | - $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $catHandler->table); |
|
| 211 | + $result = $xoopsDB->query('SHOW COLUMNS FROM '.$catHandler->table); |
|
| 212 | 212 | while (false !== ($existing_field = $xoopsDB->fetchArray($result))) { |
| 213 | 213 | $fields[$existing_field['field']] = $existing_field['type']; |
| 214 | 214 | } |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | //$xoopsDB->query("ALTER TABLE ".$table." ADD ".$field." ".$type); |
| 268 | 268 | //echo $field."(".$type.") <FONT COLOR='##22DD51'>Added</FONT><br>"; |
| 269 | 269 | } elseif ($existing_fields[$field] != $type) { |
| 270 | - $table->addAlteredField($field, $field . ' ' . $type); |
|
| 270 | + $table->addAlteredField($field, $field.' '.$type); |
|
| 271 | 271 | // check $fields[$field]['type'] for things like "int(10) unsigned" |
| 272 | 272 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$field." ".$type); |
| 273 | 273 | //echo $field." <FONT COLOR='#FF6600'>Changed to</FONT> ".$type."<br>"; |
@@ -288,17 +288,17 @@ discard block |
||
| 288 | 288 | function get_table_info($table, $default_fields) |
| 289 | 289 | { |
| 290 | 290 | global $xoopsDB; |
| 291 | - $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $table); |
|
| 291 | + $result = $xoopsDB->query('SHOW COLUMNS FROM '.$table); |
|
| 292 | 292 | while (false !== ($existing_field = $xoopsDB->fetchArray($result))) { |
| 293 | 293 | $fields[$existing_field['Field']] = $existing_field['Type']; |
| 294 | 294 | if ('YES' !== $existing_field['Null']) { |
| 295 | 295 | $fields[$existing_field['Field']] .= ' NOT NULL'; |
| 296 | 296 | } |
| 297 | 297 | if ($existing_field['Extra']) { |
| 298 | - $fields[$existing_field['Field']] .= ' ' . $existing_field['Extra']; |
|
| 298 | + $fields[$existing_field['Field']] .= ' '.$existing_field['Extra']; |
|
| 299 | 299 | } |
| 300 | 300 | if ($default_fields[$existing_field['Field']]['Default']) { |
| 301 | - $fields[$existing_field['Field']] .= " default '" . $existing_field['Default'] . "'"; |
|
| 301 | + $fields[$existing_field['Field']] .= " default '".$existing_field['Default']."'"; |
|
| 302 | 302 | } |
| 303 | 303 | } |
| 304 | 304 | |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | if (in_array($field, array_keys($renamed_fields))) { |
| 321 | 321 | $new_field_name = $renamed_fields[$field]; |
| 322 | 322 | $new_field_type = $new_fields[$new_field_name]['Type']; |
| 323 | - $table->addAltered($field, $new_field_name . ' ' . $new_field_type); |
|
| 323 | + $table->addAltered($field, $new_field_name.' '.$new_field_type); |
|
| 324 | 324 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$new_field_name." ".$new_field_type); |
| 325 | 325 | //echo $field." Renamed to ".$new_field_name."<br>"; |
| 326 | 326 | $fields[$new_field_name] = $new_field_type; |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | //return $fields; |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | -$op = isset($_REQUEST['op']) ? (int)$_REQUEST['op'] : 0; |
|
| 332 | +$op = isset($_REQUEST['op']) ? (int) $_REQUEST['op'] : 0; |
|
| 333 | 333 | switch ($op) { |
| 334 | 334 | case 1: |
| 335 | 335 | // Make sure that nohtml is properly changed to dohtml |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | |
| 349 | 349 | default: |
| 350 | 350 | //ask what to do |
| 351 | - include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 351 | + include XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 352 | 352 | $form = new \XoopsThemeForm('Upgrade WF-Downloads', 'form', $_SERVER['REQUEST_URI']); |
| 353 | 353 | |
| 354 | 354 | //Is MyDownloads installed? |
@@ -373,4 +373,4 @@ discard block |
||
| 373 | 373 | } |
| 374 | 374 | //wfdownloads_modFooter(); |
| 375 | 375 | //xoops_cp_footer(); |
| 376 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 376 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -19,11 +19,11 @@ |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Smartobject; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
| 22 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
| 23 | 23 | //require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php'); |
| 24 | 24 | |
| 25 | 25 | // require_once __DIR__ . '/../class/Utility.php'; |
| 26 | -require_once __DIR__ . '/../include/common.php'; |
|
| 26 | +require_once __DIR__.'/../include/common.php'; |
|
| 27 | 27 | |
| 28 | 28 | $moduleDirName = basename(dirname(__DIR__)); |
| 29 | 29 | $helper = Smartobject\Helper::getInstance(); |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | -require_once __DIR__ . '/admin_header.php'; |
|
| 59 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 60 | -require_once SMARTOBJECT_ROOT_PATH . 'class/rating.php'; |
|
| 58 | +require_once __DIR__.'/admin_header.php'; |
|
| 59 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 60 | +require_once SMARTOBJECT_ROOT_PATH.'class/rating.php'; |
|
| 61 | 61 | $smartobjectRatingHandler = xoops_getModuleHandler('rating'); |
| 62 | 62 | $indexAdmin = \Xmf\Module\Admin::getInstance(); |
| 63 | 63 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | case 'mod': |
| 75 | 75 | case 'changedField': |
| 76 | 76 | |
| 77 | - $ratingid = isset($_GET['ratingid']) ? (int)$_GET['ratingid'] : 0; |
|
| 77 | + $ratingid = isset($_GET['ratingid']) ? (int) $_GET['ratingid'] : 0; |
|
| 78 | 78 | |
| 79 | 79 | smart_xoops_cp_header(); |
| 80 | 80 | $adminObject->displayNavigation(basename(__FILE__)); |
@@ -83,14 +83,14 @@ discard block |
||
| 83 | 83 | break; |
| 84 | 84 | |
| 85 | 85 | case 'addrating': |
| 86 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 86 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 87 | 87 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectRatingHandler); |
| 88 | - $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL . 'admin/rating.php'); |
|
| 88 | + $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL.'admin/rating.php'); |
|
| 89 | 89 | |
| 90 | 90 | break; |
| 91 | 91 | |
| 92 | 92 | case 'del': |
| 93 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 93 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 94 | 94 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectRatingHandler); |
| 95 | 95 | $controller->handleObjectDeletion(); |
| 96 | 96 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | smart_collapsableBar('createdratings', _AM_SOBJECT_RATINGS, _AM_SOBJECT_RATINGS_DSC); |
| 107 | 107 | |
| 108 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 108 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 109 | 109 | $objectTable = new XoopsModules\Smartobject\SmartObjectTable($smartobjectRatingHandler); |
| 110 | 110 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('name', 'left')); |
| 111 | 111 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('dirname', 'left')); |
@@ -153,4 +153,4 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | //smart_modFooter(); |
| 155 | 155 | //xoops_cp_footer(); |
| 156 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 156 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | * Licence: GNU |
| 8 | 8 | */ |
| 9 | 9 | // |
| 10 | -require_once __DIR__ . '/admin_header.php'; |
|
| 10 | +require_once __DIR__.'/admin_header.php'; |
|
| 11 | 11 | |
| 12 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectabout.php'; |
|
| 12 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectabout.php'; |
|
| 13 | 13 | $aboutObj = new XoopsModules\Smartobject\SmartobjectAbout(); |
| 14 | 14 | $aboutObj->render(); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $tagObj = $smartobjectTagHandler->get($tagid); |
| 22 | 22 | |
| 23 | 23 | if ($tagObj->isNew()) { |
| 24 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_TAG_CREATE; |
|
| 24 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_TAG_CREATE; |
|
| 25 | 25 | $title = _AM_SOBJECT_TAG_CREATE; |
| 26 | 26 | $info = _AM_SOBJECT_TAG_CREATE_INFO; |
| 27 | 27 | $collaps_name = 'tagcreate'; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | //$tagObj->stripMultilanguageFields(); |
| 31 | 31 | } else { |
| 32 | 32 | if ($language) { |
| 33 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_TAG_EDITING_LANGUAGE; |
|
| 33 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_TAG_EDITING_LANGUAGE; |
|
| 34 | 34 | $title = _AM_SOBJECT_TAG_EDIT_LANGUAGE; |
| 35 | 35 | $info = _AM_SOBJECT_TAG_EDIT_LANGUAGE_INFO; |
| 36 | 36 | $collaps_name = 'tageditlanguage'; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $submit_button_caption = null; |
| 39 | 39 | $tagObj->makeNonMLFieldReadOnly(); |
| 40 | 40 | } else { |
| 41 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_EDITING; |
|
| 41 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_EDITING; |
|
| 42 | 42 | $title = _AM_SOBJECT_TAG_EDIT; |
| 43 | 43 | $info = _AM_SOBJECT_TAG_EDIT_INFO; |
| 44 | 44 | $collaps_name = 'tagedit'; |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | smart_close_collapsable($collaps_name); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | -require_once __DIR__ . '/admin_header.php'; |
|
| 61 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 62 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttag.php'; |
|
| 60 | +require_once __DIR__.'/admin_header.php'; |
|
| 61 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 62 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttag.php'; |
|
| 63 | 63 | |
| 64 | 64 | $smartobjectTagHandler = xoops_getModuleHandler('tag'); |
| 65 | 65 | |
@@ -79,22 +79,22 @@ discard block |
||
| 79 | 79 | switch ($op) { |
| 80 | 80 | |
| 81 | 81 | case 'del': |
| 82 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 82 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 83 | 83 | $controller = new SmartObjectController($smartobjectTagHandler); |
| 84 | 84 | $controller->handleObjectDeletion(_AM_SOBJECT_TAG_DELETE_CONFIRM); |
| 85 | 85 | |
| 86 | 86 | break; |
| 87 | 87 | |
| 88 | 88 | case 'addtag': |
| 89 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 89 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 90 | 90 | $controller = new SmartObjectController($smartobjectTagHandler); |
| 91 | 91 | $tagObj = $controller->storeSmartObject(); |
| 92 | 92 | if ($tagObj->hasError()) { |
| 93 | - redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors()); |
|
| 93 | + redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR.$tagObj->getHtmlErrors()); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | if ($tagObj->hasError()) { |
| 97 | - redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors()); |
|
| 97 | + redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR.$tagObj->getHtmlErrors()); |
|
| 98 | 98 | } else { |
| 99 | 99 | redirect_header(smart_get_page_before_form(), 3, _CO_SOBJECT_SAVE_SUCCESS); |
| 100 | 100 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | smart_collapsableBar('tags', _AM_SOBJECT_TAGS, _AM_SOBJECT_TAGS_INFO); |
| 116 | 116 | |
| 117 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 117 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 118 | 118 | $objectTable = new SmartObjectTable($smartobjectTagHandler, false, ['delete']); |
| 119 | 119 | $objectTable->addColumn(new SmartObjectColumn('name')); |
| 120 | 120 | $objectTable->addColumn(new SmartObjectColumn('language')); |
@@ -141,4 +141,4 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | //smart_modFooter(); |
| 143 | 143 | //xoops_cp_footer(); |
| 144 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 144 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -44,11 +44,11 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | -require_once __DIR__ . '/admin_header.php'; |
|
| 47 | +require_once __DIR__.'/admin_header.php'; |
|
| 48 | 48 | smart_loadLanguageFile('smartobject', 'customtag'); |
| 49 | 49 | |
| 50 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 51 | -require_once SMARTOBJECT_ROOT_PATH . 'class/customtag.php'; |
|
| 50 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 51 | +require_once SMARTOBJECT_ROOT_PATH.'class/customtag.php'; |
|
| 52 | 52 | $smartobjectCustomtagHandler = xoops_getModuleHandler('customtag'); |
| 53 | 53 | |
| 54 | 54 | $adminObject = \Xmf\Module\Admin::getInstance(); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | switch ($op) { |
| 66 | 66 | case 'mod': |
| 67 | 67 | |
| 68 | - $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0; |
|
| 68 | + $customtagid = isset($_GET['customtagid']) ? (int) $_GET['customtagid'] : 0; |
|
| 69 | 69 | |
| 70 | 70 | smart_xoops_cp_header(); |
| 71 | 71 | $adminObject->displayNavigation(basename(__FILE__)); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | case 'clone': |
| 77 | 77 | |
| 78 | - $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0; |
|
| 78 | + $customtagid = isset($_GET['customtagid']) ? (int) $_GET['customtagid'] : 0; |
|
| 79 | 79 | |
| 80 | 80 | smart_xoops_cp_header(); |
| 81 | 81 | $adminObject->displayNavigation(basename(__FILE__)); |
@@ -84,14 +84,14 @@ discard block |
||
| 84 | 84 | break; |
| 85 | 85 | |
| 86 | 86 | case 'addcustomtag': |
| 87 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 87 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 88 | 88 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectCustomtagHandler); |
| 89 | 89 | $controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED); |
| 90 | 90 | break; |
| 91 | 91 | |
| 92 | 92 | case 'del': |
| 93 | 93 | |
| 94 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 94 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 95 | 95 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectCustomtagHandler); |
| 96 | 96 | $controller->handleObjectDeletion(); |
| 97 | 97 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | smart_collapsableBar('createdcustomtags', _AM_SOBJECT_CUSTOMTAGS, _AM_SOBJECT_CUSTOMTAGS_DSC); |
| 110 | 110 | |
| 111 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 111 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 112 | 112 | $objectTable = new XoopsModules\Smartobject\SmartObjectTable($smartobjectCustomtagHandler); |
| 113 | 113 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('name', 'left', 150, 'getCustomtagName')); |
| 114 | 114 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('description', 'left')); |
@@ -157,4 +157,4 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | //smart_modFooter(); |
| 159 | 159 | //xoops_cp_footer(); |
| 160 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 160 | +require_once __DIR__.'/admin_footer.php'; |
|