@@ -19,7 +19,7 @@ |
||
19 | 19 | * @author Mage Grégory (AKA Mage) |
20 | 20 | * @version $Id$ |
21 | 21 | */ |
22 | -include __DIR__ . '/header.php'; |
|
22 | +include __DIR__.'/header.php'; |
|
23 | 23 | |
24 | 24 | // heaser |
25 | 25 | $xoops->header(); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | $tpl->assign('xoops_sitename', $xoops->getConfig('sitename')); |
59 | 59 | // Meta |
60 | -$tpl->assign('xoops_pagetitle', strip_tags($view_content->getVar('content_title') . ' - ' . XoopsLocale::A_PRINT . ' - ' . $xoopsModule->name())); |
|
60 | +$tpl->assign('xoops_pagetitle', strip_tags($view_content->getVar('content_title').' - '.XoopsLocale::A_PRINT.' - '.$xoopsModule->name())); |
|
61 | 61 | |
62 | 62 | $content = $tpl->fetch('module:page/page_pdf.tpl'); |
63 | 63 |
@@ -58,6 +58,6 @@ |
||
58 | 58 | |
59 | 59 | $tpl->assign('xoops_sitename', $xoops->getConfig('sitename')); |
60 | 60 | // Meta |
61 | -$tpl->assign('xoops_pagetitle', strip_tags($view_content->getVar('content_title') . ' - ' . XoopsLocale::A_PRINT . ' - ' . $xoopsModule->name())); |
|
61 | +$tpl->assign('xoops_pagetitle', strip_tags($view_content->getVar('content_title').' - '.XoopsLocale::A_PRINT.' - '.$xoopsModule->name())); |
|
62 | 62 | |
63 | 63 | $tpl->display('module:page/page_print.tpl'); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | // criteria |
180 | 180 | $criteria = new CriteriaCompo(); |
181 | - $criteria->add(new Criteria('content_id', '(' . implode(', ', $pages_ids) . ')', 'IN')); |
|
181 | + $criteria->add(new Criteria('content_id', '('.implode(', ', $pages_ids).')', 'IN')); |
|
182 | 182 | $criteria->add(new Criteria('content_status', 0, '!=')); |
183 | 183 | $criteria->add(new Criteria('content_maindisplay', 0, '!=')); |
184 | 184 | $criteria->setSort($sort); |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | // criteria |
202 | 202 | $criteria = new CriteriaCompo(); |
203 | - $criteria->add(new Criteria('content_id', '(' . implode(', ', $pages_ids) . ')', 'IN')); |
|
203 | + $criteria->add(new Criteria('content_id', '('.implode(', ', $pages_ids).')', 'IN')); |
|
204 | 204 | $criteria->add(new Criteria('content_status', 0, '!=')); |
205 | 205 | $criteria->add(new Criteria('content_maindisplay', 0, '!=')); |
206 | 206 | $criteria->setSort($sort); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | { |
246 | 246 | $values = parent::get($content_id)->toArray(); |
247 | 247 | $values['content_id'] = 0; |
248 | - $values['content_title'] = PageLocale::CONTENT_COPY . $values['content_title']; |
|
248 | + $values['content_title'] = PageLocale::CONTENT_COPY.$values['content_title']; |
|
249 | 249 | $values['content_weight'] = 0; |
250 | 250 | $values['content_hits'] = 0; |
251 | 251 | $values['content_votes'] = 0; |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $criteria->add(new Criteria('gperm_itemid', $content_id)); |
56 | 56 | $criteria->add(new Criteria('gperm_modid', $module_id)); |
57 | 57 | $criteria->add(new Criteria('gperm_name', 'page_view_item', '=')); |
58 | - $criteria->add(new Criteria('gperm_groupid', '(' . implode(', ', $groups_delete) . ')', 'IN')); |
|
58 | + $criteria->add(new Criteria('gperm_groupid', '('.implode(', ', $groups_delete).')', 'IN')); |
|
59 | 59 | if (parent::deleteAll($criteria)) { |
60 | 60 | } |
61 | 61 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | // Metas |
66 | 66 | //description |
67 | -$xoTheme->addMeta('meta', 'description', strip_tags($helper->getModule()->name()) . ', ' . implode(',', $keywords)); |
|
67 | +$xoTheme->addMeta('meta', 'description', strip_tags($helper->getModule()->name()).', '.implode(',', $keywords)); |
|
68 | 68 | //keywords |
69 | 69 | $xoTheme->addMeta('meta', 'keywords', implode(',', $keywords)); |
70 | 70 | unset($keywords); |
@@ -17,16 +17,16 @@ discard block |
||
17 | 17 | * @version $Id$ |
18 | 18 | */ |
19 | 19 | |
20 | -require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
20 | +require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
21 | 21 | |
22 | 22 | $op = ''; |
23 | -if ( isset( $_POST ) ){ |
|
24 | - foreach ( $_POST as $k => $v ) { |
|
23 | +if (isset($_POST)) { |
|
24 | + foreach ($_POST as $k => $v) { |
|
25 | 25 | ${$k} = $v; |
26 | 26 | } |
27 | 27 | } |
28 | -if ( isset( $_GET ) ){ |
|
29 | - foreach ( $_GET as $k => $v ) { |
|
28 | +if (isset($_GET)) { |
|
29 | + foreach ($_GET as $k => $v) { |
|
30 | 30 | ${$k} = $v; |
31 | 31 | } |
32 | 32 | } |
@@ -36,5 +36,5 @@ discard block |
||
36 | 36 | $xoops = Xoops::getInstance(); |
37 | 37 | $system = System::getInstance(); |
38 | 38 | |
39 | -include_once dirname(__DIR__) . '/class/xcaptcha.php'; |
|
39 | +include_once dirname(__DIR__).'/class/xcaptcha.php'; |
|
40 | 40 | $xcaptcha_handler = new Xcaptcha(); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @version $Id$ |
17 | 17 | */ |
18 | 18 | |
19 | -include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
19 | +include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
20 | 20 | |
21 | 21 | $op = ''; |
22 | 22 | if (isset($_POST)) { |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public static function eventCoreIncludeCommonEnd($args) |
35 | 35 | { |
36 | - if (XoopsLoad::fileExists($hnd_file = dirname(__DIR__) . '/api.php')) { |
|
36 | + if (XoopsLoad::fileExists($hnd_file = dirname(__DIR__).'/api.php')) { |
|
37 | 37 | include_once $hnd_file; |
38 | 38 | } |
39 | 39 | } |