diff --git a/project_issue.module b/project_issue.module
index 60d6bc9..02cf019 100644
--- a/project_issue.module
+++ b/project_issue.module
@@ -225,6 +225,11 @@ function project_issue_theme() {
       'file' => 'includes/notification.inc',
       'render element' => 'element',
     ),
+    'project_issue_query_result_links' => array(
+      'variables' => array(
+        'links' => array(),
+      ),
+    ),
   );
 }
 
@@ -1276,7 +1281,25 @@ function project_issue_query_result_links($project_arg = NULL) {
       );
     }
   }
-  return theme('project_issue_query_result_links', $links);
+  $variables = array(
+    'links' => $links,
+  );
+  return theme('project_issue_query_result_links', $variables);
+}
+
+/**
+ * Return the HTML to use for the links at the top of issue query pages.
+ *
+ * @param $variables
+ *   An associative array containing:
+ *   - links: An associative array of links to be themed, indexed by the
+ *     action ('create', 'search', etc).
+ *
+ * @see project_issue_query_result()
+ * @see theme_links()
+ */
+function theme_project_issue_query_result_links($variables) {
+  return theme('links', $variables);
 }
 
 /**
