From a720d465487e0048bc27c846efa010c749b77b5e Mon Sep 17 00:00:00 2001 From: thomasmars Date: Thu, 9 Mar 2017 17:36:20 +0100 Subject: [PATCH] Make it easier to send files to the editor HFP-822 --- h5p-default-storage.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index eba4257..479c86a 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -408,7 +408,7 @@ class H5PDefaultStorage implements \H5PFileStorage { * * @throws Exception Unable to copy the file */ - private static function copyFileTree($source, $destination) { + public static function copyFileTree($source, $destination) { if (!self::dirReady($destination)) { throw new \Exception('unabletocopy'); } @@ -482,4 +482,13 @@ class H5PDefaultStorage implements \H5PFileStorage { return TRUE; } + + /** + * Easy helper function for retrieving the editor path + * + * @return null|string Path to editor files + */ + public function getEditorPath() { + return $this->alteditorpath; + } }