remove fail() that is not used
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 23 Jul 2006 11:16:09 +0000 (11:16 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 23 Jul 2006 11:16:09 +0000 (11:16 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@577 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/admin/synchro_ax.php
include/platal/page.inc.php

index b881f73..abb437a 100644 (file)
@@ -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'));
     }
index 114322a..f81f994 100644 (file)
@@ -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();
     }