Commit 5fd14941 authored by merlinofchaos's avatar merlinofchaos

Issue #1217596: Page Manager uses wrong method to fetch title when listing handlers for export.

parent b95a9f40
......@@ -1052,7 +1052,15 @@ function page_manager_page_manager_handlers_list() {
$handlers = ctools_export_load_object('page_manager_handlers');
foreach ($handlers as $handler) {
if (in_array($handler->task, $types)) {
$list[$handler->name] = check_plain("$handler->task: " . $handler->conf['title'] . " ($handler->name)");
$plugin = page_manager_get_task_handler($handler->handler);
$title = page_manager_get_handler_title($plugin, $handler, $tasks[$handler->task], $handler->subtask);
if ($title) {
$list[$handler->name] = check_plain("$handler->task: $title ($handler->name)");
}
else {
$list[$handler->name] = check_plain("$handler->task: ($handler->name)");
}
}
}
return $list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment