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;
|