From 0fcbe8d082a7b97c668edd5954038e01ad41484f Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 23 Jul 2006 11:16:09 +0000 Subject: [PATCH] remove fail() that is not used git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@577 839d8a87-29fc-0310-9880-83ba4fa771e5 --- htdocs/admin/synchro_ax.php | 3 +-- include/platal/page.inc.php | 12 ++---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/htdocs/admin/synchro_ax.php b/htdocs/admin/synchro_ax.php index b881f73..abb437a 100644 --- a/htdocs/admin/synchro_ax.php +++ b/htdocs/admin/synchro_ax.php @@ -36,7 +36,7 @@ require_once('user.func.inc.php'); if (Env::has('user')) { $login = get_user_forlife(Env::get('user')); if ($login === false) { - $page->kill(""); + exit; } } @@ -50,7 +50,6 @@ if (Env::has('mat')) { } if ($login) { - if (Env::has('importe')) { ax_synchronize($login, S::v('uid')); } diff --git a/include/platal/page.inc.php b/include/platal/page.inc.php index 114322a..f81f994 100644 --- a/include/platal/page.inc.php +++ b/include/platal/page.inc.php @@ -175,20 +175,12 @@ class PlatalPage extends Smarty } // }}} - // {{{ function fail() - - function fail($msg) - { - $this->trig($msg); - $this->_failure = true; - } - - // }}} // {{{ function kill() function kill($msg) { - $this->fail($msg); + $this->trig($msg); + $this->_failure = true; $this->run(); } -- 2.1.4