From: skodak Date: Sun, 21 Sep 2008 15:54:48 +0000 (+0000) Subject: MDL-16596 adding missing get_pathnamehash() method X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8b1ed8bf8fbda065417a8dae54d2b9ce5de7d2c7;p=moodle.git MDL-16596 adding missing get_pathnamehash() method --- diff --git a/lib/file/virtual_root_file.php b/lib/file/virtual_root_file.php index 9fc53b385f..cebd7ae20e 100644 --- a/lib/file/virtual_root_file.php +++ b/lib/file/virtual_root_file.php @@ -170,4 +170,9 @@ class virtual_root_file { 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()); + } + }