mirror of https://git.dotclear.org/dev/dotclear
Media manager notices should be displayed inside its popups (media and media-item) rather than on the caller page.
parent
4ee4a7fdc8
commit
6277c1da91
|
@ -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.'));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue