@@ -273,7 +273,6 @@ |
||
| 273 | 273 | * Modify any setting related to topics. |
| 274 | 274 | * Requires the admin_forum permission. |
| 275 | 275 | * Accessed from ?action=admin;area=postsettings;sa=topics. |
| 276 | - |
|
| 277 | 276 | * @param bool $return_config Whether or not to return the config_vars array (used for admin search) |
| 278 | 277 | * @return void|array Returns nothing or returns $config_vars if $return_config is true |
| 279 | 278 | * @uses Admin template, edit_topic_settings sub-template. |
@@ -694,7 +694,6 @@ |
||
| 694 | 694 | * It shows as the maintain_forum admin area. |
| 695 | 695 | * It is accessed from ?action=admin;area=maintain;sa=database;activity=optimize. |
| 696 | 696 | * It also updates the optimize scheduled task such that the tables are not automatically optimized again too soon. |
| 697 | - |
|
| 698 | 697 | * @uses the optimize sub template |
| 699 | 698 | */ |
| 700 | 699 | function OptimizeTables() |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | // The helper is crucial. Include it first thing. |
| 84 | 84 | if (!file_exists($upgrade_path . '/upgrade-helper.php')) |
| 85 | - die('upgrade-helper.php not found where it was expected: ' . $upgrade_path . '/upgrade-helper.php! Make sure you have uploaded ALL files from the upgrade package. The upgrader cannot continue.'); |
|
| 85 | + die('upgrade-helper.php not found where it was expected: ' . $upgrade_path . '/upgrade-helper.php! Make sure you have uploaded ALL files from the upgrade package. The upgrader cannot continue.'); |
|
| 86 | 86 | |
| 87 | 87 | require_once($upgrade_path . '/upgrade-helper.php'); |
| 88 | 88 | |
@@ -437,9 +437,9 @@ discard block |
||
| 437 | 437 | { |
| 438 | 438 | // Sort events by start time (all day events will be listed first) |
| 439 | 439 | uasort($day['events'], function($a, $b) { |
| 440 | - if ($a['start_timestamp'] == $b['start_timestamp']) |
|
| 441 | - return 0; |
|
| 442 | - return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
| 440 | + if ($a['start_timestamp'] == $b['start_timestamp']) |
|
| 441 | + return 0; |
|
| 442 | + return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
| 443 | 443 | }); |
| 444 | 444 | |
| 445 | 445 | echo ' |
@@ -619,9 +619,9 @@ discard block |
||
| 619 | 619 | { |
| 620 | 620 | // Sort events by start time (all day events will be listed first) |
| 621 | 621 | uasort($day['events'], function($a, $b) { |
| 622 | - if ($a['start_timestamp'] == $b['start_timestamp']) |
|
| 623 | - return 0; |
|
| 624 | - return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
| 622 | + if ($a['start_timestamp'] == $b['start_timestamp']) |
|
| 623 | + return 0; |
|
| 624 | + return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
| 625 | 625 | }); |
| 626 | 626 | |
| 627 | 627 | foreach ($day['events'] as $event) |
@@ -5475,7 +5475,6 @@ discard block |
||
| 5475 | 5475 | |
| 5476 | 5476 | /** |
| 5477 | 5477 | * Tries different modes to make file/dirs writable. Wrapper function for chmod() |
| 5478 | - |
|
| 5479 | 5478 | * @param string $file The file/dir full path. |
| 5480 | 5479 | * @param int $value Not needed, added for legacy reasons. |
| 5481 | 5480 | * @return boolean true if the file/dir is already writable or the function was able to make it writable, false if the function couldn't make the file/dir writable. |
@@ -5515,7 +5514,6 @@ discard block |
||
| 5515 | 5514 | |
| 5516 | 5515 | /** |
| 5517 | 5516 | * Wrapper function for json_decode() with error handling. |
| 5518 | - |
|
| 5519 | 5517 | * @param string $json The string to decode. |
| 5520 | 5518 | * @param bool $returnAsArray To return the decoded string as an array or an object, SMF only uses Arrays but to keep on compatibility with json_decode its set to false as default. |
| 5521 | 5519 | * @param bool $logIt To specify if the error will be logged if theres any. |
@@ -6006,7 +6004,7 @@ discard block |
||
| 6006 | 6004 | $cont = stream_context_get_params($read); |
| 6007 | 6005 | $result = isset($cont["options"]["ssl"]["peer_certificate"]) ? true : false; |
| 6008 | 6006 | } |
| 6009 | - return $result; |
|
| 6007 | + return $result; |
|
| 6010 | 6008 | } |
| 6011 | 6009 | |
| 6012 | 6010 | /** |