Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit dcf4983

Browse files
author
the-djmaze
committed
Bugfix themes in inside Nextcloud by adding webPath #96
1 parent 47c1071 commit dcf4983

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dev/Common/Links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const
8181
prefix = '';
8282
}
8383

84-
return prefix + 'themes/' + encodeURI(theme) + '/images/preview.png';
84+
return Settings.app('webPath') + prefix + 'themes/' + encodeURI(theme) + '/images/preview.png';
8585
},
8686

8787
/**

snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,8 @@ public function AppData(bool $bAdmin): array
651651
array(
652652
'version' => APP_VERSION,
653653
'token' => $oConfig->Get('security', 'csrf_protection', false) ? Utils::GetCsrfToken() : '',
654-
'languages' => \SnappyMail\L10n::getLanguages(false)
654+
'languages' => \SnappyMail\L10n::getLanguages(false),
655+
'webPath' => \RainLoop\Utils::WebPath()
655656
), $bAdmin ? array(
656657
'adminHostUse' => '' !== $oConfig->Get('security', 'admin_panel_host', ''),
657658
'adminPath' => $oConfig->Get('security', 'admin_panel_key', '') ?: 'admin',

0 commit comments

Comments
 (0)