From 3fe4c4e1c439b7804cabf4cd5fe3b6e5d5bb97d4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 26 Apr 2009 06:00:31 +0000 Subject: - Patch #352880 by dereine, Dave Reid: replace strstre with strpos. --- modules/system/system.api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system/system.api.php') diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 608879d5e..17667959f 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -462,7 +462,7 @@ function hook_link($type, $object, $teaser = FALSE) { */ function hook_link_alter(array &$links, $node) { foreach ($links as $module => $link) { - if (strstr($module, 'taxonomy_term')) { + if (strpos($module, 'taxonomy_term') !== FALSE) { // Link back to the forum and not the taxonomy term page $links[$module]['href'] = str_replace('taxonomy/term', 'forum', $link['href']); } -- cgit v1.2.3