Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Pagination

#177

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);

Reported by semias · March 11th, 2011 @ 05:08 AM

State: resolved
Milestone: 5.0.4
Assigned to: semias semias

Activity

  1. semias
    semias

    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
    

    March 11th, 2011 @ 06:30 AM

  2. semias
    semias
    • No changes were found…

    March 11th, 2011 @ 08:43 AM

  3. semias
    semias
    • State changed from open to resolved
    • Milestone order changed from 21 to 0

    April 22nd, 2011 @ 09:07 AM

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.