mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-04 03:59:09 -04:00
fix implode() so the separater is always the first argument
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user