mirror of
https://github.com/flarum/core.git
synced 2025-10-17 01:36:09 +02:00
@@ -96,8 +96,9 @@ class Extension implements Arrayable
|
||||
*/
|
||||
protected function assignId()
|
||||
{
|
||||
$segments = explode('/', $this->path);
|
||||
$this->id = end($segments);
|
||||
list($vendor, $package) = explode('/', $this->name);
|
||||
$package = str_replace(['flarum-ext-', 'flarum-'], '', $package);
|
||||
$this->id = "$vendor-$package";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user