plugins/admin/PageManager.php
changeset 345 4ccdfeee9a11
parent 343 eefe9ab7fe7c
child 387 92664d2efab8
--- a/plugins/admin/PageManager.php	Mon Dec 31 21:43:51 2007 -0500
+++ b/plugins/admin/PageManager.php	Thu Jan 03 00:53:33 2008 -0500
@@ -569,7 +569,14 @@
   }
   $title = get_page_title_ns($row['urlname'], $row['namespace']);
   $pathskey = $paths->nslist[$row['namespace']] . $row['urlname'];
-  $url = makeUrlNS('Special', 'Administration', "module={$paths->nslist['Admin']}PageManager&action=select&page_id=$pathskey", true);
+  if ( isset($row['mode']) && $row['mode'] == 'edit' )
+  {
+    $url = makeUrlNS($row['namespace'], $row['urlname'], false, true) . '#do:edit';
+  }
+  else
+  {
+    $url = makeUrlNS('Special', 'Administration', "module={$paths->nslist['Admin']}PageManager&action=select&page_id=$pathskey", true);
+  }
   $url = '<a href="' . $url . '">' . htmlspecialchars($title) . '</a>';
   $return .= '  <td class="' . $td_class . '" style="width: 33%;">' . $url . '</td>' . "\n";
   $cell_count++;