mirror of
https://github.com/getgrav/grav.git
synced 2025-12-05 15:29:57 +01:00
Minor improvement for the new Route::withLanguate() method
This commit is contained in:
@@ -218,7 +218,7 @@ class Route
|
||||
public function withLanguage($language)
|
||||
{
|
||||
$new = $this->copy();
|
||||
$new->language = $language;
|
||||
$new->language = $language ?? '';
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user