@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_contents', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_contents', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->timestamps(); |
| 19 | 19 | $table->bigInteger('user_id')->unsigned(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_libraries_languages', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_libraries_languages', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigInteger('library_id')->unsigned(); |
| 18 | 18 | $table->string('language_code', 31); |
| 19 | 19 | $table->text('translation', 65535); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_contents_libraries', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_contents_libraries', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigInteger('content_id')->unsigned(); |
| 18 | 18 | $table->bigInteger('library_id')->unsigned(); |
| 19 | 19 | $table->string('dependency_type', 31); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_contents_tags', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_contents_tags', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigInteger('content_id')->unsigned(); |
| 18 | 18 | $table->bigInteger('tag_id')->unsigned(); |
| 19 | 19 | $table->primary(['content_id', 'tag_id']); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_libraries_hub_cache', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_libraries_hub_cache', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('machine_name', 127); |
| 19 | 19 | $table->bigInteger('major_version')->unsigned(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_event_logs', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_event_logs', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('type'); |
| 19 | 19 | $table->string('sub_type'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_libraries_cachedassets', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_libraries_cachedassets', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigInteger('library_id')->unsigned(); |
| 18 | 18 | $table->string('hash', 64); |
| 19 | 19 | $table->primary(['library_id', 'hash'], 'fk_primary'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_libraries', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_libraries', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->timestamps(); |
| 19 | 19 | $table->string('name', 127); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | // public function getLibraryData($machineName, $majorVersion, $minorVersion, $languageCode, $prefix = '', $fileDir = '', $defaultLanguage) { |
| 31 | 31 | |
| 32 | - $editor->ajax->action(H5PEditorEndpoints::SINGLE_LIBRARY, $machineName, $major_version, $minor_version, $h5p->get_language(), '', $h5p->get_h5plibrary_url('', true), $defaultLanguag); //$defaultLanguage |
|
| 32 | + $editor->ajax->action(H5PEditorEndpoints::SINGLE_LIBRARY, $machineName, $major_version, $minor_version, $h5p->get_language(), '', $h5p->get_h5plibrary_url('', true), $defaultLanguag); //$defaultLanguage |
|
| 33 | 33 | // Log library load |
| 34 | 34 | event(new H5pEvent('library', null, null, null, $machineName, $major_version.'.'.$minor_version)); |
| 35 | 35 | } else { |