Skip to content

Commit

Permalink
Issue CollaboraOnline#43: NULL, TRUE and FALSE in uppercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote authored and AaronGilMartinez committed Nov 25, 2024
1 parent 99721ca commit 2dcdc06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collabora_online.module
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function collabora_online_entity_operation(EntityInterface $entity) {
'collabora_online_view' => [
'title' => t("View in Collabora Online"),
'weight' => 50,
'url' => CoolUtils::getEditorUrl($media, false),
'url' => CoolUtils::getEditorUrl($media, FALSE),
],
];

Expand Down
2 changes: 1 addition & 1 deletion src/Cool/CoolUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public static function getDocumentType(File $file) {
* @return \Drupal\Core\Url
* Editor url to visit as full-page, or to embed in an iframe.
*/
public static function getEditorUrl(Media $media, $can_write = false) {
public static function getEditorUrl(Media $media, $can_write = FALSE) {
if ($can_write) {
return Url::fromRoute('collabora-online.edit', ['media' => $media->id()]);
} else {
Expand Down

0 comments on commit 2dcdc06

Please sign in to comment.