]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15992: box.net file rename - fixing warning
authormjollnir_ <mjollnir_>
Mon, 11 Aug 2008 15:30:38 +0000 (15:30 +0000)
committermjollnir_ <mjollnir_>
Mon, 11 Aug 2008 15:30:38 +0000 (15:30 +0000)
portfolio/type/boxnet/lib.php

index e8f6e46e50f20b6ae677fffae6458ea74372337c..bd4d67c26f1c3f9b3adb1ef9c839f853820f5f61 100644 (file)
@@ -209,7 +209,7 @@ class portfolio_plugin_boxnet extends portfolio_plugin_base {
         $bits = explode('.', $newname);
         $suffix = '';
         if (count($bits) == 1) {
-            $prefix = $origname;
+            $prefix = $newname;
         } else {
             $suffix = '.' . array_pop($bits);
             $prefix = implode('.', $bits);