summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-12-13 19:26:05 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-12-13 19:26:05 +0100
commit79b8d67627d7a9437414d482982fe686ab17ab40 (patch)
tree003efd10a3be836b6ad6c97b2436c07cf182e1a6 /lib/util.php
parent2330d6bcc7a178d15b74eb8352f86e778afd717d (diff)
downloadnextcloud-server-79b8d67627d7a9437414d482982fe686ab17ab40.tar.gz
nextcloud-server-79b8d67627d7a9437414d482982fe686ab17ab40.zip
remove PgeNavi. It's no longer used
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php31
1 files changed, 1 insertions, 30 deletions
diff --git a/lib/util.php b/lib/util.php
index 34c4d4f9b11..3a6ee87b3ac 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -166,7 +166,7 @@ class OC_Util {
* @param int timestamp $timestamp
* @param bool dateOnly option to ommit time from the result
*/
- public static function formatDate( $timestamp, $dateOnly=false) {
+ public static function formatDate( $timestamp, $dateOnly=false) {
if(isset($_SESSION['timezone'])) {//adjust to clients timezone if we know it
$systemTimeZone = intval(date('O'));
$systemTimeZone=(round($systemTimeZone/100, 0)*60)+($systemTimeZone%100);
@@ -176,37 +176,8 @@ class OC_Util {
}
$l=OC_L10N::get('lib');
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
* @return array arrays with error messages and hints