2
# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
3
# This program is distributed under the terms of the
4
# GNU General Public License, version 2.
6
# $Id: function.mtpreviouslink.php 2103 2008-04-25 11:36:53Z fumiakiy $
8
function smarty_function_mtpreviouslink($args, &$ctx) {
9
$limit = $ctx->stash('__pager_limit');
10
$offset = $ctx->stash('__pager_offset');
12
if ( $offset <= $limit )
17
if ( strpos($link, '?') ) {
24
$link .= "limit=$limit";
26
$link .= "&offset=$offset";