@@ -123,7 +123,7 @@ |
||
123 | 123 | $errorMessage = 'The uploaded file exceeds the upload_max_filesize directive in php.ini.'; |
124 | 124 | break; |
125 | 125 | case 2: |
126 | - $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the ' . |
|
126 | + $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the '. |
|
127 | 127 | 'HTML form.'; |
128 | 128 | break; |
129 | 129 | case 3: |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The import function to import the phpMyFAQ backups. |
|
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 Thorsten Rinne <[email protected]> |
|
13 | - * @copyright 2003-2016 phpMyFAQ Team |
|
14 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
15 | - * @link http://www.phpmyfaq.de |
|
16 | - * @since 2003-02-24 |
|
17 | - */ |
|
3 | + * The import function to import the phpMyFAQ backups. |
|
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 Thorsten Rinne <[email protected]> |
|
13 | + * @copyright 2003-2016 phpMyFAQ Team |
|
14 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
15 | + * @link http://www.phpmyfaq.de |
|
16 | + * @since 2003-02-24 |
|
17 | + */ |
|
18 | 18 | if (!defined('IS_VALID_PHPMYFAQ')) { |
19 | 19 | $protocol = 'http'; |
20 | 20 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
@@ -208,8 +208,8 @@ discard block |
||
208 | 208 | $confPerPage = $this->_config->get('records.numberOfRecordsPerPage'); |
209 | 209 | $numOfResults = $resultSet->getNumberOfResults(); |
210 | 210 | |
211 | - $totalPages = ceil($numOfResults / $confPerPage); |
|
212 | - $lastPage = $currentPage * $confPerPage; |
|
211 | + $totalPages = ceil($numOfResults/$confPerPage); |
|
212 | + $lastPage = $currentPage*$confPerPage; |
|
213 | 213 | $firstPage = $lastPage - $confPerPage; |
214 | 214 | if ($lastPage > $numOfResults) { |
215 | 215 | $lastPage = $numOfResults; |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $oLink->itemTitle = $oLink->tooltip = $result->question; |
287 | 287 | |
288 | 288 | $html .= '<li>'; |
289 | - $html .= $this->renderScore($result->score * 33); |
|
289 | + $html .= $this->renderScore($result->score*33); |
|
290 | 290 | $html .= sprintf('<strong>%s</strong>: %s<br />', |
291 | 291 | $categoryInfo[0]['name'], |
292 | 292 | $oLink->toHtmlAnchor() |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Adds a new (sub-)category, a new sub-category inherits the permissions from |
|
4 | - * its parent category. |
|
5 | - * |
|
6 | - * PHP Version 5.5 |
|
7 | - * |
|
8 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
9 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
10 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
11 | - * |
|
12 | - * @category phpMyFAQ |
|
13 | - * |
|
14 | - * @author Thorsten Rinne <[email protected]> |
|
15 | - * @copyright 2003-2016 phpMyFAQ Team |
|
16 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | - * |
|
18 | - * @link http://www.phpmyfaq.de |
|
19 | - * @since 2003-12-20 |
|
20 | - */ |
|
3 | + * Adds a new (sub-)category, a new sub-category inherits the permissions from |
|
4 | + * its parent category. |
|
5 | + * |
|
6 | + * PHP Version 5.5 |
|
7 | + * |
|
8 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
9 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
10 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
11 | + * |
|
12 | + * @category phpMyFAQ |
|
13 | + * |
|
14 | + * @author Thorsten Rinne <[email protected]> |
|
15 | + * @copyright 2003-2016 phpMyFAQ Team |
|
16 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
17 | + * |
|
18 | + * @link http://www.phpmyfaq.de |
|
19 | + * @since 2003-12-20 |
|
20 | + */ |
|
21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
22 | 22 | $protocol = 'http'; |
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |