@@ -62,7 +62,7 @@ |
||
62 | 62 | } |
63 | 63 | } else { |
64 | 64 | $user = PMF_User_CurrentUser::getFromCookie($faqConfig); |
65 | - if (! $user instanceof PMF_User_CurrentUser) { |
|
65 | + if (!$user instanceof PMF_User_CurrentUser) { |
|
66 | 66 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
67 | 67 | } |
68 | 68 | } |
@@ -169,12 +169,15 @@ |
||
169 | 169 | action: 'ajax', |
170 | 170 | ajax: 'recordAdd' |
171 | 171 | }; |
172 | - <?php else: ?> |
|
172 | + <?php else { |
|
173 | + : ?> |
|
173 | 174 | var data = { |
174 | 175 | action: 'ajax', |
175 | 176 | ajax: 'recordSave' |
176 | 177 | }; |
177 | - <?php endif; ?> |
|
178 | + <?php endif; |
|
179 | +} |
|
180 | +?> |
|
178 | 181 | |
179 | 182 | $.each($('#faqEditor').serializeArray(), function(i, field) { |
180 | 183 | data[field.name] = field.value; |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Displays a form to add a glossary item. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * |
|
13 | - * @author Thorsten Rinne <[email protected]> |
|
14 | - * @copyright 2005-2016 phpMyFAQ Team |
|
15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | - * |
|
17 | - * @link http://www.phpmyfaq.de |
|
18 | - * @since 2005-09-15 |
|
19 | - */ |
|
3 | + * Displays a form to add a glossary item. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * |
|
13 | + * @author Thorsten Rinne <[email protected]> |
|
14 | + * @copyright 2005-2016 phpMyFAQ Team |
|
15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | + * |
|
17 | + * @link http://www.phpmyfaq.de |
|
18 | + * @since 2005-09-15 |
|
19 | + */ |
|
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | 22 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Ajax interface for attachments. |
|
4 | - * |
|
5 | - * PHP Version 5.5 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * @author Anatoliy Belsky <[email protected]> |
|
13 | - * @copyright 2010-2016 phpMyFAQ Team |
|
14 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
15 | - * |
|
16 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2010-12-13 |
|
18 | - */ |
|
3 | + * Ajax interface for attachments. |
|
4 | + * |
|
5 | + * PHP Version 5.5 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * @author Anatoliy Belsky <[email protected]> |
|
13 | + * @copyright 2010-2016 phpMyFAQ Team |
|
14 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
15 | + * |
|
16 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2010-12-13 |
|
18 | + */ |
|
19 | 19 | if (!defined('IS_VALID_PHPMYFAQ')) { |
20 | 20 | $protocol = 'http'; |
21 | 21 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |