]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15362 - send sha1 of entire zipfile to mahara, not just contents
authormjollnir_ <mjollnir_>
Mon, 1 Sep 2008 14:36:12 +0000 (14:36 +0000)
committermjollnir_ <mjollnir_>
Mon, 1 Sep 2008 14:36:12 +0000 (14:36 +0000)
portfolio/type/mahara/lib.php

index fc9d9468b9e3644ea7d3513d9c08f2226d93653f..c827b0dc8466fdec99935e0a2becaae6294c79ed 100644 (file)
@@ -154,7 +154,10 @@ class portfolio_plugin_mahara extends portfolio_plugin_pull_base {
         $client->add_param($this->token);
         $client->add_param($this->get('user')->username);
         $client->add_param($this->resolve_format());
-        $client->add_param(array('filesmanifest' => $this->filesmanifest));
+        $client->add_param(array(
+            'filesmanifest' => $this->filesmanifest,
+            'zipfilesha1'   => $this->get('file')->get_contenthash()
+        ));
         $client->add_param($this->get_export_config('wait'));
         $this->ensure_mnethost();
         if (!$client->send($this->mnethost)) {