From 7368f6ec78981a73bdd9756c0ed05d8da94f389f Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Wed, 3 Jul 2019 08:30:57 +0100
Subject: [PATCH] Get local backend name from config

---
 lib/blogs.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/blogs.php b/lib/blogs.php
index 8902a87..257827b 100644
--- a/lib/blogs.php
+++ b/lib/blogs.php
@@ -76,8 +76,8 @@ function noblogs_get_backend_map() {
 
 // Return the backend ID for the local host.
 function noblogs_get_local_backend_id() {
-  $id = trim(file_get_contents("/etc/ai/public_id"));
-  return "backend_{$id}";
+  global $noblogs_config;
+  return $noblogs_config['local_backend_name'];
 }
 
 // Return a list of blogs that are local to this server.
-- 
GitLab