mirror of
https://github.com/getgrav/grav.git
synced 2026-03-20 03:21:36 +01:00
Fix slug to be lowercase
This commit is contained in:
@@ -16,7 +16,7 @@ class Package extends BasePackage
|
||||
$this->settings = $package->toArray();
|
||||
|
||||
$html_description = \Parsedown::instance()->line($this->description);
|
||||
$this->data->set('slug', $this->name);
|
||||
$this->data->set('slug', strtolower($this->name));
|
||||
$this->data->set('description_html', $html_description);
|
||||
$this->data->set('description_plain', strip_tags($html_description));
|
||||
$this->data->set('symlink', is_link(USER_DIR . $package_type . DS . $this->name));
|
||||
|
||||
Reference in New Issue
Block a user