Skip to content

Commit a817074

Browse files
committed
fix(#94): Set default language when updating version
Updates the call to $version->update to use 'default' as the language if $lang is null. This ensures that a valid language is always provided during the update process.
1 parent fd082c3 commit a817074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/clean/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
// check if the version exists for the given language
5050
// and try to update the page with the data
5151
if ($version->exists($lang) === true) {
52-
$version->update($data, $lang);
52+
$version->update($data, $lang ?? 'default');
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)