Created
October 12, 2015 07:19
-
-
Save piyuesh23/1739ce5d5981e7695aa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -uprb a/plugins/tasks/pm_existing_pages.inc b/plugins/tasks/pm_existing_pages.inc | |
--- plugins/tasks/pm_existing_pages.inc 2012-05-19 21:33:36.000000000 +0530 | |
+++ plugins/tasks/pm_existing_pages.inc 2015-01-14 12:38:38.000000000 +0530 | |
@@ -238,7 +238,6 @@ function _pm_existing_pages_get_context( | |
* A collection of arguments we need for CTools. | |
*/ | |
function _pm_existing_pages_get_context_arguments($menu_args, $pm_args, $task_id) { | |
- | |
// If no menu arguments, we can skip. | |
if (empty($menu_args)) { | |
return array(0 => '', 1 => ''); | |
@@ -258,6 +257,10 @@ function _pm_existing_pages_get_context_ | |
break; | |
} | |
} | |
+ // OO - Context fix for forum | |
+ if($task_id == 'forum_category') | |
+ $info = 'forum_forum'; | |
+ // OO - end | |
$object = menu_get_object($info, $position); | |
if ($object) { | |
return array( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment