diff --git a/install/src/controllers/summary.php b/install/src/controllers/summary.php
index 16eca901e3..5837ae200c 100644
--- a/install/src/controllers/summary.php
+++ b/install/src/controllers/summary.php
@@ -14,7 +14,7 @@ function f_owc($path, $data, $mode = null)
fclose($hnd);
if (!is_null($mode)) {
- chmod($path, $mode);
+ @chmod($path, $mode);
}
} catch (Exception $e) {
// Nothing, this is NOT normal
diff --git a/install/src/functions.php b/install/src/functions.php
index e0a6c8fa5a..e184966b1e 100644
--- a/install/src/functions.php
+++ b/install/src/functions.php
@@ -165,7 +165,6 @@ function get_installmode()
}
}
}
-
return $installmode;
}
}
@@ -182,7 +181,7 @@ function getLangs($install_language)
) {
$manager_language = $install_language;
} else {
- $manager_language = 'english';
+ $manager_language = 'en';
}
$langs = [];
if ($handle = opendir('../core/lang')) {
@@ -194,14 +193,12 @@ function getLangs($install_language)
closedir($handle);
}
sort($langs);
-
$_ = [];
foreach ($langs as $language) {
$abrv_language = explode('.', $language);
$selected = (strtolower($abrv_language[0]) == strtolower($manager_language)) ? ' selected' : '';
$_[] = '';
}
-
return implode("\n", $_);
}
}
@@ -220,7 +217,6 @@ function sortItem($array = [], $order = 'utf8mb4,utf8')
}
}
$rs['unrecommend'] = '';
-
return $rs + $array;
}
}
@@ -249,7 +245,6 @@ function getTemplates($presets = [])
$_[] = parse($tpl, $ph);
$i++;
}
-
return (0 < count($_)) ? '
[%templates%]
' . implode("\n", $_) : '';
}
}
@@ -279,7 +274,6 @@ function getTVs($presets = [])
$_[] = parse($tpl, $ph);
$i++;
}
-
return (0 < count($_)) ? '[%tvs%]
' . implode("\n", $_) : '';
}
}
@@ -310,7 +304,6 @@ function getChunks($presets = [])
$_[] = parse($tpl, $ph);
$i++;
}
-
return (0 < count($_)) ? '[%chunks%]
' . implode("\n", $_) : '';
}
}
@@ -341,7 +334,6 @@ function getModules($presets = [])
$_[] = parse($tpl, $ph);
$i++;
}
-
return (0 < count($_)) ? '[%modules%]
' . implode("\n", $_) : '';
}
}
@@ -376,7 +368,6 @@ function getPlugins($presets = [])
$_[] = parse($tpl, $ph);
$i++;
}
-
return (0 < count($_)) ? '[%plugins%]
' . implode("\n", $_) : '';
}
}
@@ -407,7 +398,6 @@ function getSnippets($presets = [])
$_[] = parse($tpl, $ph);
$i++;
}
-
return (0 < count($_)) ? '[%snippets%]
' . implode("\n", $_) : '';
}
}
@@ -476,7 +466,6 @@ function parse_docblock($element_dir, $filename)
@fclose($tpl);
}
}
-
return $params;
}
}
@@ -510,7 +499,6 @@ function propertiesNameValue($propertyString)
}
}
}
-
return $parameter;
}
}
@@ -619,7 +607,6 @@ function parseProperties($propertyString, $json = false)
function isJson($string, $returnData = false)
{
$data = json_decode($string, true);
-
return (json_last_error() == JSON_ERROR_NONE) ? ($returnData ? $data : true) : false;
}
}
@@ -654,7 +641,6 @@ function getCreateDbCategory($category)
*/
function removeDocblock($code, $type)
{
-
$cleaned = preg_replace("/^.*?\/\*\*.*?\*\/\s+/s", '', $code, 1);
// Procedure taken from plugin.filesource.php