#177 ✓resolved
semias

Pagination

Reported by semias | March 11th, 2011 @ 05:08 AM | in 5.0.4 (closed)

Not all variables are send correctly to Saf.Pager. Which results in an incorrectly working paging structure.

Solution:

$pg = new Pager ($parameters['offset'], $parameters['limit'], $parameters['total']);
$pg->getInfo ();
// Check on ? 
$pos = strpos ( $_SERVER['REQUEST_URI'] , "?" );
if($pos === false) {
    $url = $_SERVER['REQUEST_URI'] . "?";
} else {
    $url = $_SERVER['REQUEST_URI'];
}
$pg->setUrl (preg_replace ('/&offset=[0-9]+/', '', $url));
template_simple_register ('pager', $pg);

Comments and changes to this ticket

  • semias

    semias March 11th, 2011 @ 06:30 AM

    Affected Files:

    inc/app/sitemailer2/boxes/archive/index.php
    inc/app/ysearch/boxes/search/index.php
    inc/app/siteblog/boxes/index/index.php
    inc/app/siteforum/boxes/search/index.php
    inc/app/myadm/boxes/browse/index.php
    inc/app/cms/boxes/deleted/items/index.php
    inc/app/cms/boxes/browse/index.php
    inc/app/cms/boxes/history/index.php
    

    Affected Files, no changes needed:

    inc/app/sitemailer2/boxes/subscribers/index.php
    inc/app/siteblog/boxes/topic/index.php
    inc/app/siteblog/boxes/author/index.php
    inc/app/siteforum/boxes/topic/index.php
    inc/app/siteforum/boxes/list/index.php
    inc/app/siteshop/boxes/admin/orders/index.php
    inc/app/siteshop/boxes/admin/products/index.php
    inc/app/usradm/boxes/browse/_users.php
    inc/app/usradm/boxes/browse/_log.php
    inc/app/sitelinks/boxes/category/index.php
    inc/app/sitelinks/boxes/type/index.php
    inc/app/news/boxes/index/index.php
    inc/app/news/boxes/search/index.php
    inc/app/siteinvoice/boxes/index/index.php
    inc/app/siteinvoice/boxes/clients/index.php
    inc/app/siteconnector/boxes/admin/day/index.php
    inc/app/petition/boxes/signatures/index.php
    inc/app/sitesearch/boxes/stats/day/index.php
    inc/app/sitesearch/boxes/stats/search/index.php
    inc/app/sitesearch/boxes/search/index.php
    saf/lib/GUI/DataGrid.php
    saf/lib/XML/XT.php
    
  • semias

    semias March 11th, 2011 @ 08:43 AM

    • no changes were found...
  • semias

    semias April 22nd, 2011 @ 09:07 AM

    • State changed from “open” to “resolved”
    • Milestone order changed from “21” to “0”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Sitellite web content management system.

People watching this ticket

Pages