summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Mateescu2012-08-03 12:15:42 (GMT)
committer Andrei Mateescu2012-08-03 12:15:42 (GMT)
commitb8270a818fcab42ceec3eea7b353865210c7a6eb (patch)
tree16149ee5571e5f9034b75bfd4e56ad9e0e11787f
parentdd45955af9ac3e12e3cb72d56a154e9c7399d99f (diff)
Issue #1425326 by killua99, abhishek.kukku: Fixed PHP Fatal error: Call to undefined function apachesolr_mark_node() in nodequeue.module line 1084.6.x-2.x
-rw-r--r--nodequeue.module14
1 files changed, 12 insertions, 2 deletions
diff --git a/nodequeue.module b/nodequeue.module
index 20a749a..4bf267d 100644
--- a/nodequeue.module
+++ b/nodequeue.module
@@ -1048,7 +1048,12 @@ function nodequeue_subqueue_add($queue, &$subqueue, $nid) {
nodequeue_check_subqueue_size($queue, $subqueue, $queue->size);
}
if (module_exists('apachesolr')) {
- apachesolr_mark_node($nid);
+ if (function_exists('apachesolr_mark_node')) {
+ apachesolr_mark_node($nid);
+ }
+ else {
+ apachesolr_mark_entity('node', $nid);
+ }
}
// Invoke the hook to notify other modules of the node addition.
module_invoke_all('nodequeue_add', $subqueue->sqid, $nid);
@@ -1069,7 +1074,12 @@ function nodequeue_subqueue_remove_node($sqid, $nid) {
if ($pos = nodequeue_get_subqueue_position($sqid, $nid)) {
nodequeue_subqueue_remove($sqid, $pos);
if (module_exists('apachesolr')) {
- apachesolr_mark_node($nid);
+ if (function_exists('apachesolr_mark_node')) {
+ apachesolr_mark_node($nid);
+ }
+ else {
+ apachesolr_mark_entity('node', $nid);
+ }
}
}
}