Media manager notices should be displayed inside its popups (media and media-item) rather than on the caller page.

2.6
franck 2013-11-09 08:41:13 +01:00
parent 4ee4a7fdc8
commit 6277c1da91
2 changed files with 55 additions and 45 deletions

View File

@ -313,6 +313,11 @@ call_user_func($open_f,__('Media manager'),
$breadcrumb
);
if ($popup) {
// Display notices
echo dcPage::notices();
}
if (!$core_media_writable) {
dcPage::warning(__('You do not have sufficient permissions to write to this folder.'));
}

View File

@ -227,6 +227,11 @@ call_user_func($open_f,__('Media manager'),
)
);
if ($popup) {
// Display notices
echo dcPage::notices();
}
if ($file === null) {
call_user_func($close_f);
exit;