From 8b1ed8bf8fbda065417a8dae54d2b9ce5de7d2c7 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 21 Sep 2008 15:54:48 +0000 Subject: [PATCH] MDL-16596 adding missing get_pathnamehash() method --- lib/file/virtual_root_file.php | 5 +++++ 1 file changed, 5 insertions(+) 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()); + } + } -- 2.39.5