Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-cli
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
noblogs-cli
Commits
7368f6ec
Commit
7368f6ec
authored
5 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Get local backend name from config
parent
42edf4ab
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/blogs.php
+2
-2
2 additions, 2 deletions
lib/blogs.php
with
2 additions
and
2 deletions
lib/blogs.php
+
2
−
2
View file @
7368f6ec
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment