Skip to content
Snippets Groups Projects
Commit 7368f6ec authored by ale's avatar ale
Browse files

Get local backend name from config

parent 42edf4ab
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment