fix implode() so the separater is always the first argument

This commit is contained in:
Bradley W. Dutton
2020-02-01 20:53:43 -08:00
parent 053d8d06e6
commit 680de0c6d0
3 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ if (installer::already_installed()) {
$errors = installer::check_environment();
if ($errors) {
oops(implode($errors, "\n"));
oops(implode("\n", $errors));
}
$config = parse_cli_params();

View File

@@ -102,7 +102,7 @@ class Upgrader_Controller extends Controller {
if ($failed) {
print "Upgrade completed ** WITH FAILURES **\n";
print "The following modules were not successfully upgraded:\n";
print " " . implode($failed, "\n ") . "\n";
print " " . implode("\n ", $failed) . "\n";
print "Try getting newer versions or deactivating those modules\n";
} else {
print "Upgrade complete\n";

View File

@@ -285,8 +285,8 @@ class Item_Model_Core extends ORM_MPTT {
$names[] = rawurlencode($row->name);
$slugs[] = rawurlencode($row->slug);
}
$this->relative_path_cache = implode($names, "/");
$this->relative_url_cache = implode($slugs, "/");
$this->relative_path_cache = implode("/", $names);
$this->relative_url_cache = implode("/", $slugs);
return $this;
}