--- securepages.module	2011-01-04 14:11:18.000000000 -0500
+++ securepages.module	2011-01-04 14:12:27.000000000 -0500
@@ -210,6 +210,12 @@ function securepages_match($path) {
   if ($pages) {
     $regexp = '/^(' . preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1' . preg_quote(variable_get('site_frontpage', 'node'), '/') . '\2'), preg_quote($pages, '/')) . ')$/';
     $result = preg_match($regexp, $path);
+    if (!function_exists('drupal_get_path_alias')) {
+      global $language_url;
+      $language_url = new stdClass();
+      $language_url->language = '';
+      include(DRUPAL_ROOT . '/' .'includes/path.inc'); 
+    }    
     if (function_exists('drupal_get_path_alias')) {
       $path_alias = drupal_get_path_alias($path);
       $result |= preg_match($regexp, $path_alias);
