@@ -71,9 +71,9 @@ |
||
71 | 71 | </a> | |
72 | 72 | <?php echo $date->format(date('Y-m-d H:i', $faqcomment['date'])) ?> | |
73 | 73 | <a href="<?php printf('../?action=artikel&cat=%d&id=%d&artlang=%s', |
74 | - $faqcomment['category_id'], |
|
75 | - $faqcomment['record_id'], |
|
76 | - $LANGCODE) ?>"> |
|
74 | + $faqcomment['category_id'], |
|
75 | + $faqcomment['record_id'], |
|
76 | + $LANGCODE) ?>"> |
|
77 | 77 | <?php echo $faq->getRecordTitle($faqcomment['record_id']) ?> |
78 | 78 | </a> |
79 | 79 | </span><br/> |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if (!is_dir(PMF_ROOT_DIR.'/images')) { |
67 | 67 | echo '<p class="alert alert-danger">'.sprintf($PMF_LANG['ad_dir_missing'], '/images').'</p>'; |
68 | 68 | } else { |
69 | - $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR . '/images/')); |
|
69 | + $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR.'/images/')); |
|
70 | 70 | foreach ($files as $file) { |
71 | 71 | if ($file->isDir() || !in_array($file->getExtension(), $allowedExtensions)) { |
72 | 72 | continue; |
@@ -74,9 +74,9 @@ discard block |
||
74 | 74 | $path = str_replace(dirname(__DIR__).'/', '', $file->getPath()); |
75 | 75 | printf( |
76 | 76 | '<div class="mce-file" data-src="%s"><img src="%s" class="mce-file-preview">%s</div>', |
77 | - $faqConfig->getDefaultUrl() . $path . '/' . $file->getFilename(), |
|
78 | - $faqConfig->getDefaultUrl() . $path . '/' . $file->getFilename(), |
|
79 | - $path . '/' . $file->getFilename() |
|
77 | + $faqConfig->getDefaultUrl().$path.'/'.$file->getFilename(), |
|
78 | + $faqConfig->getDefaultUrl().$path.'/'.$file->getFilename(), |
|
79 | + $path.'/'.$file->getFilename() |
|
80 | 80 | ); |
81 | 81 | } |
82 | 82 | } |
@@ -73,21 +73,21 @@ |
||
73 | 73 | $search |
74 | 74 | ->setTable(PMF_Db::getTablePrefix().'faqdata AS fd') |
75 | 75 | ->setResultColumns( |
76 | - [ |
|
77 | - 'fd.id AS id', |
|
78 | - 'fd.lang AS lang', |
|
79 | - 'fcr.category_id AS category_id', |
|
80 | - 'fd.thema AS question', |
|
81 | - 'fd.content AS answer', |
|
82 | - 'fd.keywords AS keywords' |
|
83 | - ] |
|
76 | + [ |
|
77 | + 'fd.id AS id', |
|
78 | + 'fd.lang AS lang', |
|
79 | + 'fcr.category_id AS category_id', |
|
80 | + 'fd.thema AS question', |
|
81 | + 'fd.content AS answer', |
|
82 | + 'fd.keywords AS keywords' |
|
83 | + ] |
|
84 | 84 | ) |
85 | 85 | ->setJoinedTable(PMF_Db::getTablePrefix().'faqcategoryrelations AS fcr') |
86 | 86 | ->setJoinedColumns( |
87 | - [ |
|
87 | + [ |
|
88 | 88 | 'fd.id = fcr.record_id', |
89 | 89 | 'fd.lang = fcr.record_lang', |
90 | - ] |
|
90 | + ] |
|
91 | 91 | ) |
92 | 92 | ->setConditions( |
93 | 93 | [ |
@@ -105,9 +105,12 @@ discard block |
||
105 | 105 | <?php echo $PMF_LANG['msgEdit'] ?> |
106 | 106 | </a> |
107 | 107 | </td> |
108 | - <?php else: ?> |
|
108 | + <?php else { |
|
109 | + : ?> |
|
109 | 110 | <td><?php echo $PMF_LANG['msgEdit'] ?></td> |
110 | - <?php endif; ?> |
|
111 | + <?php endif; |
|
112 | +} |
|
113 | +?> |
|
111 | 114 | <?php if ($user->perm->checkRight($user->getUserId(), 'deltranslation') && $showActions): ?> |
112 | 115 | <td> |
113 | 116 | <a class="btn btn-danger" href="javascript: del('<?php echo $lang ?>');" > |
@@ -115,9 +118,12 @@ discard block |
||
115 | 118 | <?php echo $PMF_LANG['msgDelete'] ?> |
116 | 119 | </a> |
117 | 120 | </td> |
118 | - <?php else: ?> |
|
121 | + <?php else { |
|
122 | + : ?> |
|
119 | 123 | <td><?php echo $PMF_LANG['msgDelete'] ?></td> |
120 | - <?php endif; ?> |
|
124 | + <?php endif; |
|
125 | +} |
|
126 | +?> |
|
121 | 127 | <?php if ($user->perm->checkRight($user->getUserId(), 'edittranslation') && $showActions): ?> |
122 | 128 | <td> |
123 | 129 | <a class="btn btn-success" href="javascript: sendToTeam('<?php echo $lang ?>');" > |
@@ -125,14 +131,20 @@ discard block |
||
125 | 131 | <?php echo $PMF_LANG['msgTransToolSendToTeam'] ?> |
126 | 132 | </a> |
127 | 133 | </td> |
128 | - <?php else: ?> |
|
134 | + <?php else { |
|
135 | + : ?> |
|
129 | 136 | <td><?php echo $PMF_LANG['msgTransToolSendToTeam'] ?></td> |
130 | - <?php endif; ?> |
|
137 | + <?php endif; |
|
138 | +} |
|
139 | +?> |
|
131 | 140 | <?php if ($isLangFileWritable): ?> |
132 | 141 | <td><i aria-hidden="true" class="fa fa-ok-circle"></i> <?php echo $PMF_LANG['msgYes'] ?></td> |
133 | - <?php else: ?> |
|
142 | + <?php else { |
|
143 | + : ?> |
|
134 | 144 | <td><i aria-hidden="true" class="fa fa-ban-circle"></i> <?php echo $PMF_LANG['msgNo'] ?></td> |
135 | - <?php endif; ?> |
|
145 | + <?php endif; |
|
146 | +} |
|
147 | +?> |
|
136 | 148 | <td> |
137 | 149 | <?php echo $percents ?>% |
138 | 150 | <meter value="<?php echo $percents ?>" max="100" min="0" title="<?php echo $percents ?>%"> |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * @param array $headers |
52 | 52 | * @param string $body |
53 | 53 | * |
54 | - * @return bool True if successful, false otherwise. |
|
54 | + * @return integer True if successful, false otherwise. |
|
55 | 55 | */ |
56 | 56 | public function send($recipients, Array $headers, $body) |
57 | 57 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | exit(); |
19 | 19 | } |
20 | 20 | |
21 | -require __DIR__ . '/../../libs/swiftmailer/swift_required.php'; |
|
21 | +require __DIR__.'/../../libs/swiftmailer/swift_required.php'; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Class PMF_Mail_SwiftSMTP |