parent
1b079d36f1
commit
04edd73855
|
@ -451,6 +451,12 @@ class H5PDefaultStorage implements \H5PFileStorage {
|
|||
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) {
|
||||
$filePath = implode(DIRECTORY_SEPARATOR, [
|
||||
$this->path,
|
||||
|
@ -458,7 +464,6 @@ class H5PDefaultStorage implements \H5PFileStorage {
|
|||
$name,
|
||||
'presave.js',
|
||||
]);
|
||||
|
||||
return file_exists($filePath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue