Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaned-exatech committed Sep 2, 2019
1 parent 05737cc commit b696f1b
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 9 deletions.
8 changes: 4 additions & 4 deletions config/laravel-h5p.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
// Content screen setting
'h5p_show_display_option' => true,
'h5p_frame' => true,
'h5p_export' => true,
'h5p_embed' => true,
'h5p_export' => false,
'h5p_embed' => false,
'h5p_copyright' => false,
'h5p_icon' => true,
'h5p_icon' => false,
'h5p_track_user' => false,
'h5p_ext_communication' => true,
'h5p_save_content_state' => false,
Expand All @@ -39,5 +39,5 @@
'h5p_content_type_cache_updated_at' => 0,
'h5p_check_h5p_requirements' => false,
'h5p_hub_is_enabled' => false,
'h5p_version' => '1.22.0',
'h5p_version' => '1.23.0',
];
3 changes: 3 additions & 0 deletions lang/en/laravel-h5p.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,8 @@
'confirmDialogBody' => 'Please confirm that you wish to proceed. This action is not reversible.',
'cancelLabel' => 'Cancel',
'confirmLabel' => 'Confirm',
'reuse' => 'Reuse',
'reuseDescription' => 'Reuse this content',
'reuseContent' => 'Reuse content',
],
];
3 changes: 3 additions & 0 deletions lang/fr/laravel-h5p.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,8 @@
'confirmDialogBody' => 'Veuillez confirmer que vous souhaitez continuer. Cette action n\'est pas réversible.',
'cancelLabel' => 'Annuler',
'confirmLabel' => 'Confirmer',
'reuse' => 'Reuse',
'reuseDescription' => 'Reuse this content',
'reuseContent' => 'Reuse content',
],
];
2 changes: 1 addition & 1 deletion src/LaravelH5p/LaravelH5pServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function boot(\Illuminate\Routing\Router $router)
app_path('/../vendor/h5p/h5p-editor/ckeditor') => storage_path('app/public/h5p/h5p-editor/ckeditor'),
app_path('/../vendor/h5p/h5p-editor/images') => storage_path('app/public/h5p/h5p-editor/images'),
app_path('/../vendor/h5p/h5p-editor/language') => storage_path('app/public/h5p/h5p-editor/language'),
app_path('/../vendor/h5p/h5p-editor/libs') => storage_path('app/public/h5p/h5p-editor/libs'),
app_path('/../vendor/h5p/h5p-editor/libs') => storage_path('app/public/h5p/h5p-editorlibs'),//menchi maj chemin
app_path('/../vendor/h5p/h5p-editor/scripts') => storage_path('app/public/h5p/h5p-editor/scripts'),
app_path('/../vendor/h5p/h5p-editor/styles') => storage_path('app/public/h5p/h5p-editor/styles'),
], 'public');
Expand Down
2 changes: 0 additions & 2 deletions src/LaravelH5p/Repositories/LaravelH5pRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,6 @@ public function loadContent($id)
JOIN h5p_libraries hl ON hl.id = hc.library_id
WHERE hc.id = ?', [$id]);

//$return[0]->metadata = '';//TODO menchi

$content = (array) array_shift($return);

if (isset($content['metadata'])) {
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelH5p/Storages/LaravelH5pStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public function removeContentFile($file, $contentId)
{
$path = "{$this->path}/content/{$contentId}/{$file}";
if (file_exists($path)) {
unlink($path);
//unlink($path);//TODO à patcher : commenté Menchi, supprime les fichiers que l'on vient de rajouter dans le content...
}
}

Expand Down
3 changes: 3 additions & 0 deletions views/h5p/content/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@extends( config('laravel-h5p.layout') )

@if(!isset($errors))
@php $errors = collect();@endphp
@endif
@section( 'h5p' )
<div class="container-fluid">

Expand Down
4 changes: 3 additions & 1 deletion views/h5p/content/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@extends( config('laravel-h5p.layout') )


@if(!isset($errors))
@php $errors = collect();@endphp
@endif
@section( 'h5p' )
<div class="container-fluid">

Expand Down

0 comments on commit b696f1b

Please sign in to comment.