Skip to content

Commit b481cf8

Browse files
committed
Make errors prettier
1 parent 5d016fc commit b481cf8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

launcherror.php

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33

44
$error = U::get($_REQUEST, 'detail');
55

6+
// Adjust / internationalize
7+
if ( strpos($error,"Session expired - please re-launch") === 0 ||
8+
strpos($error,"Session has expired") === 0 ) {
9+
10+
$error = __('Your session has expired');
11+
}
12+
613
$_SESSION['error'] = $error;
714

815
header("Location: ".addSession($CFG->apphome));

0 commit comments

Comments
 (0)