Fixes vim mode line.
[platal.git] / classes / plsqljoin.php
index b0ea6d1..33ed825 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -19,8 +19,6 @@
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************/
 
-__autoload('xdb');
-
 // {{{ class PlSqlJoin
 class PlSqlJoin
 {
@@ -35,7 +33,7 @@ class PlSqlJoin
     private function __construct($mode, $params)
     {
         $table = array_shift($params);
-        $condition = call_user_func_array(array('XDB', 'format'), $params);
+        $condition = XDB::prepare($params);
         if ($mode != self::MODE_LEFT && $mode != self::MODE_RIGHT && $mode != self::MODE_INNER) {
             Platal::page()->kill("Join mode error: unknown mode $mode");
             return;
@@ -125,5 +123,5 @@ class PlSqlJoin
 }
 // }}}
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>