Update Drupal6.php
authorLars Gleim <lgleim@users.noreply.github.com>
Fri, 19 Feb 2016 21:21:03 +0000 (22:21 +0100)
committerLars Gleim <lgleim@users.noreply.github.com>
Fri, 19 Feb 2016 21:21:03 +0000 (22:21 +0100)
Include previously issing getUsersTableName() function from CRM/Utils/System/Drupal.php.
Fixes broken CRON on CiviCRM 4.7 Drupal 6 installations.

CRM/Utils/System/Drupal6.php

index 3a08d2e5910200659939b5da8245bccd714799bc..451eca0ee97477b9d52713c78066d338feed428f 100644 (file)
@@ -286,6 +286,14 @@ class CRM_Utils_System_Drupal6 extends CRM_Utils_System_DrupalBase {
     global $base_url;
     $base_url = str_replace('http://', 'https://', $base_url);
   }
+  
+    protected function getUsersTableName() {
+    $userFrameworkUsersTableName = Civi::settings()->get('userFrameworkUsersTableName');
+    if (empty($userFrameworkUsersTableName)) {
+      $userFrameworkUsersTableName = 'users';
+    }
+    return $userFrameworkUsersTableName;
+  }
 
   /**
    * @inheritDoc