]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14589: itemid should be 0 in user_* fileareas, but not in user_draft.
authorscyrma <scyrma>
Fri, 5 Sep 2008 10:47:34 +0000 (10:47 +0000)
committerscyrma <scyrma>
Fri, 5 Sep 2008 10:47:34 +0000 (10:47 +0000)
lib/file/file_storage.php

index dfa01a6419f2895d6df69e5c0cbfee383beda335..8200f20ff0aaa6b9e6755d29514ad2691f4bce4c 100644 (file)
@@ -606,7 +606,7 @@ class file_storage {
         }
 
         $newcontext = get_context_instance_by_id($newcontextid);
-        if (($newcontext->contextlevel == CONTEXT_USER) && ($newfilearea == 'user_private')) {
+        if (($newcontext->contextlevel == CONTEXT_USER) && ($newfilearea != 'user_draft')) {
             $newitemid = 0;
         }