Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linkchecker-3247797
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
linkchecker-3247797
Commits
b2cb5bac
Commit
b2cb5bac
authored
12 years ago
by
Alexander Hass
Browse files
Options
Downloads
Patches
Plain Diff
#1488572
: i18n: "Permission restrictions deny" all broken links in other
languages
parent
c9274725
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
linkchecker.module
+10
-0
10 additions, 0 deletions
linkchecker.module
with
10 additions
and
0 deletions
linkchecker.module
+
10
−
0
View file @
b2cb5bac
...
...
@@ -176,6 +176,11 @@ function _linkchecker_link_node_ids($link, $node_author_account = NULL) {
return
array
();
}
// Disable language negotiation temporarily, re-enable it later.
if
(
module_exists
(
'i18n'
))
{
i18n_selection_mode
(
'off'
);
}
// Get a list of nodes containing the link, using db_rewrite_sql() to allow
// node access modules to exclude nodes that the current user does not have
// access to view.
...
...
@@ -193,6 +198,11 @@ function _linkchecker_link_node_ids($link, $node_author_account = NULL) {
WHERE ln.lid = %d'
),
$link
->
lid
);
}
// Re-enable language negotiation.
if
(
module_exists
(
'i18n'
))
{
i18n_selection_mode
(
'reset'
);
}
// Check if the current user has access to view the link in each node.
// However, for performance reasons, as soon as we find one node where that
// is the case, stop checking and return the remainder of the list.
...
...
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