Forráskód Böngészése

* Fixed ManagerModel

Visman 6 éve
szülő
commit
548d7a2232
1 módosított fájl, 2 hozzáadás és 4 törlés
  1. 2 4
      app/Models/ManagerModel.php

+ 2 - 4
app/Models/ManagerModel.php

@@ -34,7 +34,7 @@ class ManagerModel extends Model
     {
     {
         $key = \str_replace(['ForkBB\\Models\\', 'ForkBB\\', '\\'], '', \get_class($this));
         $key = \str_replace(['ForkBB\\Models\\', 'ForkBB\\', '\\'], '', \get_class($this));
 
 
-        return $this->c->{$key . $name}->setManager($this);
+        return $this->c->{$key . \ucfirst($name)}->setManager($this);
     }
     }
 
 
     /**
     /**
@@ -47,8 +47,6 @@ class ManagerModel extends Model
      */
      */
     public function __call($name, array $args)
     public function __call($name, array $args)
     {
     {
-        $key = \str_replace(['ForkBB\\Models\\', 'ForkBB\\', '\\'], '', \get_class($this));
-
-        return $this->c->{$key . \ucfirst($name)}->setManager($this)->$name(...$args);
+        return $this->__get($name)->$name(...$args);
     }
     }
 }
 }