Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow Babelfish in to translate

  • Loading branch information...
commit e80ca6fb8d0d554f07a276b5ccdb6275c4a185df 1 parent b8b0f6d
moodler authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/setup.php
View
2  lib/setup.php
@@ -385,6 +385,8 @@ class object {};
if (empty($_SESSION['USER']) and !empty($_SERVER['HTTP_REFERER'])) {
if (strpos($_SERVER['HTTP_REFERER'], 'google') !== false ) {
$USER = guest_user();
+ } else if (strpos($_SERVER['HTTP_REFERER'], 'babelfish.altavista.com') !== false ) {
+ $USER = guest_user();
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.