plugins/admin/PageManager.php
changeset 345 4ccdfeee9a11
parent 343 eefe9ab7fe7c
child 387 92664d2efab8
equal deleted inserted replaced
344:be6c5fdd9203 345:4ccdfeee9a11
   567   {
   567   {
   568     $return .= "<tr>\n";
   568     $return .= "<tr>\n";
   569   }
   569   }
   570   $title = get_page_title_ns($row['urlname'], $row['namespace']);
   570   $title = get_page_title_ns($row['urlname'], $row['namespace']);
   571   $pathskey = $paths->nslist[$row['namespace']] . $row['urlname'];
   571   $pathskey = $paths->nslist[$row['namespace']] . $row['urlname'];
   572   $url = makeUrlNS('Special', 'Administration', "module={$paths->nslist['Admin']}PageManager&action=select&page_id=$pathskey", true);
   572   if ( isset($row['mode']) && $row['mode'] == 'edit' )
       
   573   {
       
   574     $url = makeUrlNS($row['namespace'], $row['urlname'], false, true) . '#do:edit';
       
   575   }
       
   576   else
       
   577   {
       
   578     $url = makeUrlNS('Special', 'Administration', "module={$paths->nslist['Admin']}PageManager&action=select&page_id=$pathskey", true);
       
   579   }
   573   $url = '<a href="' . $url . '">' . htmlspecialchars($title) . '</a>';
   580   $url = '<a href="' . $url . '">' . htmlspecialchars($title) . '</a>';
   574   $return .= '  <td class="' . $td_class . '" style="width: 33%;">' . $url . '</td>' . "\n";
   581   $return .= '  <td class="' . $td_class . '" style="width: 33%;">' . $url . '</td>' . "\n";
   575   $cell_count++;
   582   $cell_count++;
   576   if ( $cell_count == 3 && !$last_run )
   583   if ( $cell_count == 3 && !$last_run )
   577   {
   584   {