Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
noblogs-wp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
39
Issues
39
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
noblogs-wp
Commits
ddad0441
Commit
ddad0441
authored
Nov 08, 2015
by
Joe
Committed by
agata
Oct 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix scope of $noblogs_master variable
parent
0740f7f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wp-nginx-map.php
wp-nginx-map.php
+2
-2
No files found.
wp-nginx-map.php
View file @
ddad0441
...
...
@@ -16,7 +16,7 @@ function get_blogs() {
global
$wpdb
;
$sql
=
"SELECT blog_id, domain FROM
$wpdb->blogs
WHERE deleted = 0 AND archived = '0' ORDER BY domain ASC"
;
$result
=
$wpdb
->
get_results
(
$sql
);
return
(
$result
);
return
(
$result
);
}
function
printline
(
$s
)
{
...
...
@@ -35,6 +35,7 @@ function backend_to_http_endpoint($backend) {
// Print the blog -> backend map.
function
generate_map
()
{
global
$wpdb
;
global
$noblogs_master
;
$wpdb_hash
=
&
$wpdb
->
hash_map
;
$blogs
=
get_blogs
();
...
...
@@ -54,4 +55,3 @@ function generate_map() {
generate_map
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment