Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
d86d5546
Commit
d86d5546
authored
Feb 26, 2010
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#704362
by catch, andypost: fixed notices/warnings when comment module is disabled
parent
b297dc27
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/node/node.module
+7
-15
7 additions, 15 deletions
modules/node/node.module
with
7 additions
and
15 deletions
modules/node/node.module
+
7
−
15
View file @
d86d5546
...
...
@@ -311,13 +311,6 @@ function theme_node_list($variables) {
function
node_tag_new
(
$node
)
{
global
$user
;
if
(
$user
->
uid
)
{
// To avoid multiple inserts if a user repeatedly requests the same page,
// only update history if the node has been updated, a new comment has been
// posted, or more than thirty minutes has elapsed since the last request.
$last_viewed
=
node_last_viewed
(
$node
->
nid
);
if
(
!
$last_viewed
||
(
$last_viewed
<=
$node
->
changed
||
$last_viewed
<=
$node
->
last_comment_timestamp
)
||
$last_viewed
<=
REQUEST_TIME
-
variable_get
(
'node_last_viewed_threshold'
,
1800
))
{
db_merge
(
'history'
)
->
key
(
array
(
'uid'
=>
$user
->
uid
,
...
...
@@ -327,7 +320,6 @@ function node_tag_new($node) {
->
execute
();
}
}
}
/**
* Retrieves the timestamp at which the current user last viewed the
...
...
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