remove PgeNavi. It's no longer used
This commit is contained in:
parent
2330d6bcc7
commit
79b8d67627
29
lib/util.php
29
lib/util.php
|
@ -178,35 +178,6 @@ class OC_Util {
|
||||||
return $l->l($dateOnly ? 'date' : 'datetime', $timestamp);
|
return $l->l($dateOnly ? 'date' : 'datetime', $timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Shows a pagenavi widget where you can jump to different pages.
|
|
||||||
*
|
|
||||||
* @param int $pagecount
|
|
||||||
* @param int $page
|
|
||||||
* @param string $url
|
|
||||||
* @return OC_Template
|
|
||||||
*/
|
|
||||||
public static function getPageNavi($pagecount, $page, $url) {
|
|
||||||
|
|
||||||
$pagelinkcount=8;
|
|
||||||
if ($pagecount>1) {
|
|
||||||
$pagestart=$page-$pagelinkcount;
|
|
||||||
if($pagestart<0) $pagestart=0;
|
|
||||||
$pagestop=$page+$pagelinkcount;
|
|
||||||
if($pagestop>$pagecount) $pagestop=$pagecount;
|
|
||||||
|
|
||||||
$tmpl = new OC_Template( '', 'part.pagenavi', '' );
|
|
||||||
$tmpl->assign('page', $page);
|
|
||||||
$tmpl->assign('pagecount', $pagecount);
|
|
||||||
$tmpl->assign('pagestart', $pagestart);
|
|
||||||
$tmpl->assign('pagestop', $pagestop);
|
|
||||||
$tmpl->assign('url', $url);
|
|
||||||
return $tmpl;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check if the current server configuration is suitable for ownCloud
|
* check if the current server configuration is suitable for ownCloud
|
||||||
* @return array arrays with error messages and hints
|
* @return array arrays with error messages and hints
|
||||||
|
|
Loading…
Reference in New Issue