? releases_page_path.patch
Index: releasemonitor.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/releasemonitor/releasemonitor.module,v
retrieving revision 1.38
diff -u -p -r1.38 releasemonitor.module
--- releasemonitor.module	12 Jan 2007 21:16:25 -0000	1.38
+++ releasemonitor.module	15 Jan 2007 20:40:54 -0000
@@ -30,7 +30,7 @@ function releasemonitor_menu($may_cache)
   if ($may_cache) {
     $version = VERSION;
     $items[] = array(
-      'path' => intval($version[0]) >= 5 ? 'admin/build/releases' : 'admin/releases',
+      'path' => _releases_page_path(),
       'title' => t('Releases'),
       'callback' => 'releasemonitor_page',
       'access' => user_access('view releases'),
@@ -377,7 +377,7 @@ function releasemonitor_settings() {
   else {
     $statusmsg = t('The latest status has been retrieved for all active modules');
   }
-  $adminlink = l("Releases", "admin/releases");
+  $adminlink = l("Releases", _releases_page_path() );
   $form['releasemonitor']['status'] = array(
     '#value' => "<p>$statusmsg.  See $adminlink.</p>",
   );
@@ -817,6 +817,10 @@ function _releasemonitor_is_newer_module
   }
 }
 
+function _releases_page_path() {
+  return intval($version[0]) >= 5 ? 'admin/build/releases' : 'admin/releases';
+}
+
 function _releasemonitor_get_showcvs($projects) {
   $showcvs = variable_get('releasemonitor_showcvs', -1);
   if ($showcvs == -1) {
