mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-14 16:28:42 +00:00
update
This commit is contained in:
parent
ca375a5f4a
commit
41959faefd
|
|
@ -402,7 +402,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
$new->title = $request->getDataString('title') ?? $new->title;
|
$new->title = $request->getDataString('title') ?? $new->title;
|
||||||
$new->contentRaw = $request->getDataString('plain') ?? $new->contentRaw;
|
$new->contentRaw = $request->getDataString('plain') ?? $new->contentRaw;
|
||||||
$new->content = Markdown::parse((string) ($request->getData('plain') ?? $new->contentRaw));
|
$new->content = Markdown::parse($request->getDataString('plain') ?? $new->contentRaw);
|
||||||
$new->ref = $request->getDataInt('ref') ?? $new->ref;
|
$new->ref = $request->getDataInt('ref') ?? $new->ref;
|
||||||
|
|
||||||
return $new;
|
return $new;
|
||||||
|
|
|
||||||
|
|
@ -71,14 +71,12 @@ final class Autoloader
|
||||||
*
|
*
|
||||||
* @return void
|
* @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
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function defaultAutoloader(string $class) : void
|
public static function defaultAutoloader(string $class) : void
|
||||||
{
|
{
|
||||||
$class = \ltrim($class, '\\');
|
$class = \ltrim($class, '\\');
|
||||||
$class = \str_replace(['_', '\\'], '/', $class);
|
$class = \strtr($class, '_\\', '//');
|
||||||
|
|
||||||
foreach (self::$paths as $path) {
|
foreach (self::$paths as $path) {
|
||||||
$file = $path . $class . '.php';
|
$file = $path . $class . '.php';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user