fixing old urls (/<type>-<id>) and redirect on home page on logon page

(until 1.0.0)
This commit is contained in:
2014-06-15 20:49:34 +02:00
parent b62d5df15c
commit 1a52a183e0
5 changed files with 32 additions and 10 deletions

View File

@@ -335,7 +335,7 @@ class Databap extends PhpObject
return $this->iUserId;
}
public function getPage($sPage, $asVars=array())
public function getPage($sPage, $oItemId, $asVars=array())
{
$oPage = new Mask('index');
$oPage->setTag('version', self::VERSION);
@@ -346,6 +346,7 @@ class Databap extends PhpObject
//Constants
$asConstants = array( 'version'=>self::VERSION,
'default_page'=>$sPage,
'default_id'=>$oItemId,
'disconnected'=>self::DISCONNECTED,
'success'=>self::SUCCESS,
'error'=>self::ERROR,