aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorOlivier Migeot <olivier@migeot.org>2011-03-28 12:11:10 +0200
committerOlivier Migeot <olivier@migeot.org>2011-03-28 12:11:10 +0200
commitda546588db1863dd240a4c738644372fc4d183e6 (patch)
treedd6c869207098867aa6c7207f29ab5a2e9b6dc69 /boot.php
parent19d7e7fefeb3d20697d6a7e0b1fc7a16d9127c64 (diff)
parent1f6c6c466a449ba422c4e67744577f6c35b3ce0b (diff)
downloadvolse-hubzilla-da546588db1863dd240a4c738644372fc4d183e6.tar.gz
volse-hubzilla-da546588db1863dd240a4c738644372fc4d183e6.tar.bz2
volse-hubzilla-da546588db1863dd240a4c738644372fc4d183e6.zip
Merge remote branch 'mike/master'
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/boot.php b/boot.php
index 50b4fd887..ba9e2b6e4 100644
--- a/boot.php
+++ b/boot.php
@@ -2,9 +2,9 @@
set_time_limit(0);
-define ( 'FRIENDIKA_VERSION', '2.1.925' );
+define ( 'FRIENDIKA_VERSION', '2.1.931' );
define ( 'DFRN_PROTOCOL_VERSION', '2.1' );
-define ( 'DB_UPDATE_VERSION', 1044 );
+define ( 'DB_UPDATE_VERSION', 1045 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
@@ -1068,6 +1068,7 @@ function paginate(&$a) {
$stripped = preg_replace('/(&page=[0-9]*)/','',$a->query_string);
$stripped = str_replace('q=','',$stripped);
$stripped = trim($stripped,'/');
+ $pagenum = $a->pager['page'];
$url = $a->get_baseurl() . '/' . $stripped;
@@ -1080,7 +1081,7 @@ function paginate(&$a) {
$numpages = $a->pager['total'] / $a->pager['itemspage'];
- $numstart = 1;
+ $numstart = 1;
$numstop = $numpages;
if($numpages > 14) {
@@ -2019,7 +2020,7 @@ function contact_block() {
intval($shown)
);
if(count($r)) {
- $o .= '<h4 class="contact-h4">' . $total . ' ' . t('Contacts') . '</h4><div id="contact-block">';
+ $o .= '<h4 class="contact-h4">' . sprintf(tt('%d Contact','%d Contacts', $total),$total) . '</h4><div id="contact-block">';
foreach($r as $rr) {
$redirect_url = $a->get_baseurl() . '/redir/' . $rr['id'];
if(local_user() && ($rr['uid'] == local_user())
@@ -2665,4 +2666,4 @@ function extract_item_authors($arr,$uid) {
}
}
return array();
-}} \ No newline at end of file
+}}