mirror of
https://github.com/Karaka-Management/oms-Labeling.git
synced 2026-01-11 00:58:42 +00:00
code fixes
This commit is contained in:
parent
66a1abbb90
commit
9baa4a4990
|
|
@ -166,8 +166,7 @@ final class BackendController extends Controller
|
|||
$view->setTemplate('/Modules/Labeling/Theme/Backend/layout-view');
|
||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1005701001, $request, $response);
|
||||
|
||||
/** @var \Modules\Labeling\Models\LabelLayout[] $layouts */
|
||||
$layout = LabelLayoutMapper::get()
|
||||
$view->data['layout'] = LabelLayoutMapper::get()
|
||||
->with('l11n')
|
||||
->with('template')
|
||||
->with('template/sources')
|
||||
|
|
@ -175,8 +174,6 @@ final class BackendController extends Controller
|
|||
->where('id', (int) $request->getData('id'))
|
||||
->execute();
|
||||
|
||||
$view->data['layout'] = $layout;
|
||||
|
||||
return $view;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -222,6 +222,10 @@ class Label
|
|||
// should rotate
|
||||
if ($element->rotate !== 0.0) {
|
||||
$rotated = \imagerotate($in, $element->rotate, $transparency);
|
||||
if ($rotated === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
\imagealphablending($rotated, false);
|
||||
\imagesavealpha($rotated, true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user