mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-11 17:08:40 +00:00
fix tests
This commit is contained in:
parent
a2f8d1540b
commit
58e2f10f65
|
|
@ -1192,6 +1192,10 @@ final class ApiController extends Controller
|
|||
$view->setTemplate('/Modules/Media/Theme/Api/render');
|
||||
} elseif ($type === 'html') {
|
||||
$head = new Head();
|
||||
if (!\is_file(__DIR__ . '/../../../Web/Backend/css/backend-small.css')) {
|
||||
$css = '';
|
||||
}
|
||||
|
||||
$css = \file_get_contents(__DIR__ . '/../../../Web/Backend/css/backend-small.css');
|
||||
if ($css === false) {
|
||||
$css = ''; // @codeCoverageIgnore
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user