diff --git a/core/trunk/core/class/class_functions.php b/core/trunk/core/class/class_functions.php
index 35fc6127bbbc91ee00dd8ffc8a51d28ed49be601..08b48a7b1013483af4763bee62f41068bcbd93da 100644
--- a/core/trunk/core/class/class_functions.php
+++ b/core/trunk/core/class/class_functions.php
@@ -742,7 +742,7 @@ class functions
         {
             $line = $stmt->fetchObject();
 
-            $query = "SELECT path_template FROM " . _DOCSERVERS_TABLE_NAME . " WHERE docserver_id = 'TEMPLATES'";
+            $query = "SELECT path_template FROM docservers WHERE docserver_id = 'TEMPLATES'";
             $stmt2 = $conn->query($query);
             $resDs = $stmt2->fetchObject();
             $pathToDs = $resDs->path_template;