diff options
author | Mario <mario@mariovavti.com> | 2025-03-09 10:03:07 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-03-09 10:03:07 +0000 |
commit | 3789017ca01e62f4789c687231c3b87aef31d2b7 (patch) | |
tree | 20430f6bb1d804ec92b27bf91fea71798e339c25 /Zotlabs | |
parent | 48f5acced325fa3bf9390d5f03165db0c250b52c (diff) | |
download | volse-hubzilla-3789017ca01e62f4789c687231c3b87aef31d2b7.tar.gz volse-hubzilla-3789017ca01e62f4789c687231c3b87aef31d2b7.tar.bz2 volse-hubzilla-3789017ca01e62f4789c687231c3b87aef31d2b7.zip |
print an ugly error message and the destination if OWA failed for some reason
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Magic.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Module/Magic.php b/Zotlabs/Module/Magic.php index e722a7161..732488002 100644 --- a/Zotlabs/Module/Magic.php +++ b/Zotlabs/Module/Magic.php @@ -134,6 +134,15 @@ class Magic extends Controller { $args = (($x) ? '&owt=' . $token : '?owt=' . $token) . (($delegate) ? '&delegate=1' : ''); goaway($dest . $args); } + else { + $o = '<h1>OWA ERROR</h1>'; + if (!empty($j['message'])) { + $o .= '<h2>' . $j['message'] . '</h2>'; + } + $o .= '<a href=' . $dest . '>' . $dest . '</a>'; + + echo $o; + } } } } |