? require_login_7.x.patch
Index: require_login.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/require_login/require_login.info,v
retrieving revision 1.1
diff -u -p -r1.1 require_login.info
--- require_login.info	12 Apr 2010 20:39:02 -0000	1.1
+++ require_login.info	1 Feb 2011 02:08:54 -0000
@@ -2,4 +2,4 @@
 
 name = Require Login
 description = "Requires anonymous users to login before using the site."
-core = 6.x
\ No newline at end of file
+core = 7.x
\ No newline at end of file
Index: require_login.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/require_login/require_login.module,v
retrieving revision 1.2
diff -u -p -r1.2 require_login.module
--- require_login.module	19 Apr 2010 22:53:31 -0000	1.2
+++ require_login.module	1 Feb 2011 02:08:54 -0000
@@ -5,11 +5,12 @@
  * Implementation of hook_init().
  */
 function require_login_init() {
-	global $user, $base_path;
-	if (!isset($_SESSION['openid']['service']['uri']) && !isset($_SESSION['openid']['claimed_id'])) {
-  	if (request_uri() != $base_path .'cron.php' && !$user->uid && !(arg(0) == 'user' && (!arg(1) || arg(1) == 'password' || arg(1) == 'register'))) {
-  		drupal_set_message(t('You must login to use this site.'));
-  		drupal_goto('user', 'destination='. rawurlencode($_GET['q']));
-  	}
-	}
-}
\ No newline at end of file
+  global $user, $base_path;
+  if (!isset($_SESSION['openid']['service']['uri']) && !isset($_SESSION['openid']['claimed_id'])) {
+    if (request_uri() != $base_path .'cron.php' && !$user->uid && !(arg(0) == 'user' && (!arg(1) || arg(1) == 'password' || arg(1) == 'register'))) {
+      drupal_set_message(t('You must login to use this site.'));
+      $options['destination'] = rawurlencode($_GET['q']);
+      drupal_goto('user', $options);
+    }
+  }
+}
