parent
1b079d36f1
commit
04edd73855
|
@ -451,6 +451,12 @@ class H5PDefaultStorage implements \H5PFileStorage {
|
||||||
return self::dirReady($this->path);
|
return self::dirReady($this->path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the file presave.js exists in the root of the library
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
public function hasPresave($name) {
|
public function hasPresave($name) {
|
||||||
$filePath = implode(DIRECTORY_SEPARATOR, [
|
$filePath = implode(DIRECTORY_SEPARATOR, [
|
||||||
$this->path,
|
$this->path,
|
||||||
|
@ -458,7 +464,6 @@ class H5PDefaultStorage implements \H5PFileStorage {
|
||||||
$name,
|
$name,
|
||||||
'presave.js',
|
'presave.js',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return file_exists($filePath);
|
return file_exists($filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue