@@ -20,14 +20,14 @@ discard block |
||
20 | 20 | |
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
23 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
24 | 24 | $protocol = 'https'; |
25 | 25 | } |
26 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
26 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
27 | 27 | exit(); |
28 | 28 | } |
29 | 29 | |
30 | -if ($permission['editbt']|| $permission['addbt']) { |
|
30 | +if ($permission['editbt'] || $permission['addbt']) { |
|
31 | 31 | |
32 | 32 | // FAQ data |
33 | 33 | $dateStart = PMF_Filter::filterInput(INPUT_POST, 'dateStart', FILTER_SANITIZE_STRING); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $category->setGroups($currentAdminGroups); |
107 | 107 | $tagging = new PMF_Tags($faqConfig); |
108 | 108 | |
109 | - $recordData = array( |
|
109 | + $recordData = array( |
|
110 | 110 | 'lang' => $recordLang, |
111 | 111 | 'active' => $active, |
112 | 112 | 'sticky' => (!is_null($sticky) ? 1 : 0), |
@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | 'email' => $email, |
118 | 118 | 'comment' => (!is_null($comment) ? 'y' : 'n'), |
119 | 119 | 'date' => date('YmdHis'), |
120 | - 'dateStart' => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart) . '000000'), |
|
121 | - 'dateEnd' => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd) . '235959'), |
|
120 | + 'dateStart' => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart).'000000'), |
|
121 | + 'dateEnd' => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959'), |
|
122 | 122 | 'linkState' => '', |
123 | 123 | 'linkDateCheck' => 0 |
124 | 124 | ); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $faq->updateQuestionAnswer($openQuestionId, $recordId, $categories['rubrik'][0]); |
163 | 163 | } |
164 | 164 | |
165 | - $url = sprintf( |
|
165 | + $url = sprintf( |
|
166 | 166 | '%s?action=artikel&cat=%d&id=%d&artlang=%s', |
167 | 167 | $faqConfig->get('main.referenceURL'), |
168 | 168 | $categories['rubrik'][0], |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | $recordId, |
201 | 201 | $recordLang |
202 | 202 | ); |
203 | - $oLink = new PMF_Link($faqConfig->get('main.referenceURL') . $link, $faqConfig); |
|
203 | + $oLink = new PMF_Link($faqConfig->get('main.referenceURL').$link, $faqConfig); |
|
204 | 204 | $oLink->itemTitle = $question; |
205 | 205 | $link = $oLink->toString(); |
206 | 206 | |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | } else { |
226 | 226 | printf( |
227 | 227 | '<p class="alert alert-error">%s</p>', |
228 | - $PMF_LANG['ad_entry_savedfail'] . $faqConfig->getDb()->error() |
|
228 | + $PMF_LANG['ad_entry_savedfail'].$faqConfig->getDb()->error() |
|
229 | 229 | ); |
230 | 230 | } |
231 | 231 |