Plugin Directory

Changeset 1259821


Ignore:
Timestamp:
10/05/2015 02:08:08 PM (10 years ago)
Author:
cina
Message:

fixed the paging process

Location:
odlinks/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • odlinks/trunk/language/lang_en.php

    r675632 r1259821  
    3434    $odl_lang['ODL_URL'] = "Website URL:";
    3535    $odl_lang['ODL_EMAIL'] = "Email address:";
    36     $odl_lang['ODL_EMAILNOTE'] = "Note: Your email address is only used to notify the editorand to notify you on the status of your submission.";
     36    $odl_lang['ODL_EMAILNOTE'] = "Note: Your email address is only used to notify the editor and to notify you on the status of your submission.";
    3737    $odl_lang['ODL_PAGENOTE'] = "We don't accept all sites, so please don't take it personally should your site not be accepted.";
    3838    $odl_lang['ODL_CATNOTE'] = "Submit to the one best category possible.";
  • odlinks/trunk/odl_main.php

    r1049017 r1259821  
    5656  if ($counter > $page_navigation->nr_rows) {
    5757    if ( !empty($_GET['parent']) && is_numeric($_GET['parent']) )
    58       $page_navigation->params="_action=main&id=".$id."&parent=".$_GET['parent'];
     58      $page_navigation->params="_action=main&id=".$id."&parent=".$_GET['parent'];
    5959    else
    6060      $page_navigation->params="_action=main&id=".$id;
  • odlinks/trunk/odl_search.php

    r682224 r1259821  
    5959  $page_navigation->all=$counter;
    6060  if ($counter > $page_navigation->nr_rows) {
    61     $page_navigation->params="_action=main&id=".$_GET['id']."&parent=".$_GET['parent'];
     61    if (!empty($_GET['parent']) && (int)$_GET['parent'] > 0)
     62      $page_navigation->params="_action=main&id=".$_GET['id']."&parent=".$_GET['parent'];
     63    else
     64      $page_navigation->params="_action=main&id=".$_GET['id'];
    6265    list ($current_page, $navi) = $page_navigation->get_navigation($page);
    6366    $p = '<span class="title">Page '. $current_page. ' of '. $page_navigation->nr_rows . '</span>' . $navi;
Note: See TracChangeset for help on using the changeset viewer.