Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-wp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
ai
noblogs-wp
Commits
48804fa0
Commit
48804fa0
authored
9 years ago
by
Joe
Browse files
Options
Downloads
Patches
Plain Diff
Fix scope of $noblogs_master variable
parent
87744ee1
No related branches found
Tags
noblogs-4.3.1p4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wp-nginx-map.php
+2
-2
2 additions, 2 deletions
wp-nginx-map.php
with
2 additions
and
2 deletions
wp-nginx-map.php
+
2
−
2
View file @
48804fa0
...
...
@@ -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
();
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