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
fe979dec
Commit
fe979dec
authored
12 years ago
by
Alexander Hass
Browse files
Options
Downloads
Patches
Plain Diff
#1804842
follow up: Exit if all node types are disabled
parent
b40ab099
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.txt
+1
-0
1 addition, 0 deletions
CHANGELOG.txt
linkchecker.module
+6
-4
6 additions, 4 deletions
linkchecker.module
with
7 additions
and
4 deletions
CHANGELOG.txt
+
1
−
0
View file @
fe979dec
linkchecker 6.x-dev, nightly
----------------------------
* #1804842 follow up: Exit if all node types are disabled
* #1450672: Cron task does not impersonate to admin user on automatic content updates.
* Added Drupal 6.14 warning to known issues.
* #1804842: Lots of warnings when comment module is not installed
...
...
This diff is collapsed.
Click to expand it.
linkchecker.module
+
6
−
4
View file @
fe979dec
...
...
@@ -171,10 +171,12 @@ function _linkchecker_link_access($link) {
function
_linkchecker_link_node_ids
(
$link
,
$node_author_account
=
NULL
)
{
static
$fields_with_node_links
=
array
();
// If the user cannot access content, there is no need to check further.
if
(
!
user_access
(
'access content'
))
{
return
array
();
}
// Exit if all node types are disabled or if the user cannot access content,
// there is no need to check further.
$linkchecker_scan_nodetypes
=
array_filter
(
variable_get
(
'linkchecker_scan_nodetypes'
,
array
()));
if
(
empty
(
$linkchecker_scan_nodetypes
)
||
!
user_access
(
'access content'
))
{
return
array
();
}
// Disable language negotiation temporarily, re-enable it later.
if
(
module_exists
(
'i18n'
))
{
...
...
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