Skip to content

Commit

Permalink
MDL-16596 adding missing get_pathnamehash() method
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 21, 2008
1 parent b933a13 commit 8b1ed8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/file/virtual_root_file.php
Expand Up @@ -170,4 +170,9 @@ public function get_id() {
public function get_contenthash() {
return sha1('');
}

public function get_pathnamehash() {
return sha1($this->get_contextid().$this->get_filearea().$this->get_itemid().$this->get_filepath().$this->get_filename());
}

}

0 comments on commit 8b1ed8b

Please sign in to comment.