diff --git a/src/core/features/h5p/classes/framework.ts b/src/core/features/h5p/classes/framework.ts index bbdf06594..b54c08901 100644 --- a/src/core/features/h5p/classes/framework.ts +++ b/src/core/features/h5p/classes/framework.ts @@ -419,7 +419,7 @@ export class CoreH5PFramework { 'l1.patchversion AS patchVersion, l1.addto AS addTo, ' + 'l1.preloadedjs AS preloadedJs, l1.preloadedcss AS preloadedCss ' + 'FROM ' + LIBRARIES_TABLE_NAME + ' l1 ' + - 'JOIN ' + LIBRARIES_TABLE_NAME + ' l2 ON l1.machinename = l2.machinename AND (' + + 'LEFT JOIN ' + LIBRARIES_TABLE_NAME + ' l2 ON l1.machinename = l2.machinename AND (' + 'l1.majorversion < l2.majorversion OR (l1.majorversion = l2.majorversion AND ' + 'l1.minorversion < l2.minorversion)) ' + 'WHERE l1.addto IS NOT NULL AND l2.machinename IS NULL'; diff --git a/src/core/features/h5p/classes/validator.ts b/src/core/features/h5p/classes/validator.ts index a957443d7..e3ec91d49 100644 --- a/src/core/features/h5p/classes/validator.ts +++ b/src/core/features/h5p/classes/validator.ts @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +import { FileEntry, DirectoryEntry } from '@ionic-native/file/ngx'; import { CoreFile, CoreFileFormat } from '@services/file'; import { CoreTextUtils } from '@services/utils/text'; import { CoreH5PSemantics } from './content-validator';