commit 57e412c4642361ae9ca5d5ca832684f9726b8512
parent 11fe0073e930e93f0909e33d798fe4dd1be5db62
Author: Jan Dankert <devnull@localhost>
Date: Sat, 21 Jul 2018 22:39:50 +0200
Veraltete Methoden entfernt.
Diffstat:
5 files changed, 3 insertions(+), 39 deletions(-)
diff --git a/modules/cms-core/action/Action.class.php b/modules/cms-core/action/Action.class.php
@@ -437,22 +437,6 @@ namespace cms\action {
}
- /**
- * @deprecated sollte im UI gesteuert werden.
- */
- protected function refresh()
- {
- }
-
-
- /**
- * @param String Name der Perspektive
- * @deprecated gibt es nicht mehr.
- */
- protected function setPerspective($name)
- {
- }
-
protected function setCookie($name,$value='' ) {
if (empty($value))
diff --git a/modules/cms-core/action/LoginAction.class.php b/modules/cms-core/action/LoginAction.class.php
@@ -771,8 +771,7 @@ class LoginAction extends Action
$user->setCurrent(); // Benutzer ist jetzt in der Sitzung.
$this->setStyle( $user->style );
- $this->setPerspective('start');
-
+
$server = Http::getServer();
Logger::debug("Redirecting to $server");
header('Location: '.slashify($server) );
@@ -1143,9 +1142,7 @@ class LoginAction extends Action
Session::setProject( $project );
Session::setProjectLanguage( $language );
Session::setProjectModel( $model );
-
-
- $this->setPerspective('normal');
+
}
elseif ( $conf['login']['start']['start_lastchanged_object'] )
{
@@ -1168,21 +1165,17 @@ class LoginAction extends Action
Session::setProject( $project );
Session::setProjectLanguage( $language );
Session::setProjectModel( $model );
-
- $this->setPerspective('normal');
}
else
{
// Benutzer hat noch nie eine Änderung durchgefuehrt.
// Erstmal die Startseite anzeigen.
- $this->setPerspective('start');
}
}
else
{
// Erstmal die Startseite anzeigen.
- $this->setPerspective('start');
}
}
diff --git a/modules/cms-core/action/StartAction.class.php b/modules/cms-core/action/StartAction.class.php
@@ -375,7 +375,6 @@ class StartAction extends Action
{
$this->evaluateRequestVars( array('projectid'=>$this->getRequestId()) );
- $this->setPerspective('normal');
}
@@ -760,7 +759,7 @@ class StartAction extends Action
}
}
- $this->refresh(); // Benutzer ist angemeldet: Andere Views könnte das interessieren.
+ // Benutzer ist angemeldet
}
@@ -857,9 +856,6 @@ class StartAction extends Action
*/
function administrationPost()
{
- Session::setProject( new Project(-1) );
- Session::set('perspective','administration');
- $this->refresh();
}
@@ -869,8 +865,6 @@ class StartAction extends Action
*/
function profilePost()
{
- Session::set('perspective','profile');
- $this->refresh();
}
@@ -880,8 +874,6 @@ class StartAction extends Action
*/
function startPost()
{
- Session::set('perspective','start');
- $this->refresh();
}
diff --git a/modules/cms-core/action/TreeAction.class.php b/modules/cms-core/action/TreeAction.class.php
@@ -88,7 +88,6 @@ class TreeAction extends Action
$this->addNotice('language',$language->name,'DONE',OR_NOTICE_OK);
$this->addNotice('model' ,$model->name ,'DONE',OR_NOTICE_OK);
- $this->refresh();
}
@@ -99,7 +98,6 @@ class TreeAction extends Action
Session::setProjectLanguage( $language );
$this->addNotice('language',$language->name,'DONE',OR_NOTICE_OK);
- $this->refresh();
}
@@ -110,7 +108,6 @@ class TreeAction extends Action
Session::setProjectModel( $model );
$this->addNotice('model' ,$model->name ,'DONE',OR_NOTICE_OK);
- $this->refresh();
}
}
diff --git a/modules/cms-core/action/UserAction.class.php b/modules/cms-core/action/UserAction.class.php
@@ -490,8 +490,6 @@ class UserAction extends Action
// Und in der Sitzung speichern.
Session::setUser( $user );
-
- $this->refresh();
}