Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
816ba8ff
Commit
816ba8ff
authored
Nov 08, 2015
by
Joe
Committed by
lucha
Dec 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix scope of $noblogs_master variable
parent
7f9d64e7
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 @
816ba8ff
...
...
@@ -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