X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fcsvimporter.php;h=7d56bc803e794b59dc65fb721c2d2c1246110ca1;hb=c504af53e5b3e13f19039f1ab03cd16279ce4967;hp=571d22767225462ce3dac823b6acf25d1653b9cb;hpb=61e0e8619a9e391d9536d1af3c8cd441491bbc99;p=platal.git diff --git a/classes/csvimporter.php b/classes/csvimporter.php index 571d227..7d56bc8 100644 --- a/classes/csvimporter.php +++ b/classes/csvimporter.php @@ -1,6 +1,6 @@ $ref) { - $ops[$key] = $this->getValue($line, $key, $ref); + $ops[$key] = $this->getValue($line, $key, $ref, $relation); } return $ops; } @@ -92,7 +92,7 @@ class CSVImporter { $ops = array(); foreach ($relation as $key=>$ref) { - $value = $this->getValue($line, $key, $ref); + $value = $this->getValue($line, $key, $ref, $relation); if (!is_null($value) && $value != 'NULL') { $value = "'" . addslashes($value) . "'"; } @@ -239,7 +239,7 @@ class CSVImporter } /** Handle insertion form - * @param $page PlatalPage to process + * @param $page PlPage to process * @param $url URI of the page * @param $field Editable fields */