Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/src/Console/UpdateCoreCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private function updateJoomlaCore($updatemodel): bool
// Remove the administrator/cache/autoload_psr4.php file
$autoloadFile = JPATH_CACHE . '/autoload_psr4.php';

if (File::exists($autoloadFile)) {
if (file_exists($autoloadFile)) {
File::delete($autoloadFile);
}

Expand Down
5 changes: 4 additions & 1 deletion libraries/src/Installer/InstallerHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ public static function downloadPackage($url, $target = false)
$target = $tmpPath . '/' . basename($target);
}

// Fix Indirect Modification of Overloaded Property
$body = $response->body;

// Write buffer to file
File::write($target, $response->body);
File::write($target, $body);

// Restore error tracking to what it was before
ini_set('track_errors', $track_errors);
Expand Down