From cb860623c4b6689328ae451948503dd1a35a4377 Mon Sep 17 00:00:00 2001
From: solotandem <jim@boombatower.com>
Date: Mon, 11 Aug 2014 16:17:58 +0000
Subject: [PATCH] Issue #2319263: Allow server and index classes to be
 extended.

---
 includes/index_entity.inc  |    4 ++--
 includes/server_entity.inc |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/includes/index_entity.inc b/includes/index_entity.inc
index 745e904..db0116c 100644
--- a/includes/index_entity.inc
+++ b/includes/index_entity.inc
@@ -172,8 +172,8 @@ class SearchApiIndex extends Entity {
   /**
    * Constructor as a helper to the parent constructor.
    */
-  public function __construct(array $values = array()) {
-    parent::__construct($values, 'search_api_index');
+  public function __construct(array $values = array(), $entity_type = 'search_api_index') {
+    parent::__construct($values, $entity_type);
   }
 
   /**
diff --git a/includes/server_entity.inc b/includes/server_entity.inc
index be2a568..4a99116 100644
--- a/includes/server_entity.inc
+++ b/includes/server_entity.inc
@@ -74,8 +74,8 @@ class SearchApiServer extends Entity {
   /**
    * Constructor as a helper to the parent constructor.
    */
-  public function __construct(array $values = array()) {
-    parent::__construct($values, 'search_api_server');
+  public function __construct(array $values = array(), $entity_type = 'search_api_server') {
+    parent::__construct($values, $entity_type);
   }
 
   /**
-- 
1.7.10.4

