mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-01-11 14:28:40 +00:00
update
This commit is contained in:
parent
6d2e394415
commit
71173f6057
|
|
@ -93,7 +93,7 @@ final class BackendController extends Controller
|
|||
$view = new View($this->app->l11nManager, $request, $response);
|
||||
|
||||
/** @var \Modules\Draw\Models\DrawImage $draw */
|
||||
$draw = DrawImageMapper::get()->where('id', (int) ($request->getData('id')))->execute();
|
||||
$draw = DrawImageMapper::get()->where('id', (int) $request->getData('id'))->execute();
|
||||
$accountId = $request->header->account;
|
||||
|
||||
$view->setTemplate('/Modules/Draw/Theme/Backend/draw-single');
|
||||
|
|
|
|||
|
|
@ -71,14 +71,12 @@ final class Autoloader
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws AutoloadException Throws this exception if the class to autoload doesn't exist. This could also be related to a wrong namespace/file path correlation.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function defaultAutoloader(string $class) : void
|
||||
{
|
||||
$class = \ltrim($class, '\\');
|
||||
$class = \str_replace(['_', '\\'], '/', $class);
|
||||
$class = \strtr($class, '_\\', '//');
|
||||
|
||||
foreach (self::$paths as $path) {
|
||||
$file = $path . $class . '.php';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user