File: fix-autoload-locations.patch

package info (click to toggle)
roundcube 1.6.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,868 kB
  • sloc: javascript: 195,588; php: 76,818; sql: 3,150; sh: 2,882; pascal: 1,079; makefile: 234; xml: 93; perl: 73; ansic: 48; python: 21
file content (42 lines) | stat: -rw-r--r-- 1,458 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From: Guilhem Moulin <guilhem@debian.org>
Date: Sun, 13 Mar 2022 00:08:19 +0100
Subject: Fix autoload locations

Snippets generated with `phpabtpl --suggest bacon/bacon-qr-code` and
`phpabtpl --suggest GuzzleHttp`.

Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/1040705
---
 program/actions/contacts/qrcode.php | 3 +++
 program/include/rcmail_oauth.php    | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/program/actions/contacts/qrcode.php b/program/actions/contacts/qrcode.php
index 0ece569..87c31da 100644
--- a/program/actions/contacts/qrcode.php
+++ b/program/actions/contacts/qrcode.php
@@ -17,6 +17,9 @@
  +-----------------------------------------------------------------------+
 */
 
+if (stream_resolve_include_path('Bacon/BaconQrCode/autoload.php'))
+    include_once('Bacon/BaconQrCode/autoload.php');
+
 class rcmail_action_contacts_qrcode extends rcmail_action_contacts_index
 {
     protected static $mode = self::MODE_HTTP;
diff --git a/program/include/rcmail_oauth.php b/program/include/rcmail_oauth.php
index cd6dbc7..873ba31 100644
--- a/program/include/rcmail_oauth.php
+++ b/program/include/rcmail_oauth.php
@@ -17,6 +17,9 @@
  +-----------------------------------------------------------------------+
 */
 
+if (stream_resolve_include_path('GuzzleHttp/autoload.php'))
+    include_once 'GuzzleHttp/autoload.php';
+
 use GuzzleHttp\Client;
 use GuzzleHttp\MessageFormatter;
 use GuzzleHttp\Exception\RequestException;