added spaces
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
9ddb032bf2
commit
b97561e0c4
1 changed files with 6 additions and 8 deletions
4
boot.php
4
boot.php
|
@ -725,14 +725,12 @@ class App {
|
|||
}
|
||||
|
||||
// Diaspora style profile url
|
||||
|
||||
if (substr($this->cmd,0,2) === 'u/') {
|
||||
$this->cmd = 'profile/' . substr($this->cmd,2);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Break the URL path into C style argc/argv style arguments for our
|
||||
* modules. Given "http://example.com/module/arg1/arg2", $this->argc
|
||||
* will be 3 (integer) and $this->argv will contain:
|
||||
|
@ -743,7 +741,6 @@ class App {
|
|||
*
|
||||
* There will always be one argument. If provided a naked domain
|
||||
* URL, $this->argv[0] is set to "home".
|
||||
*
|
||||
*/
|
||||
|
||||
$this->argv = explode('/', $this->cmd);
|
||||
|
@ -765,6 +762,7 @@ class App {
|
|||
$this->pager['page'] = ((x($_GET, 'page') && intval($_GET['page']) > 0) ? intval($_GET['page']) : 1);
|
||||
$this->pager['itemspage'] = 50;
|
||||
$this->pager['start'] = ($this->pager['page'] * $this->pager['itemspage']) - $this->pager['itemspage'];
|
||||
|
||||
if ($this->pager['start'] < 0) {
|
||||
$this->pager['start'] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue