fix title of plugin readme

This commit is contained in:
Pig Fang 2020-04-23 11:09:45 +08:00
parent 00eaa15cf2
commit beb2c96aef

View File

@ -40,7 +40,7 @@ class PluginController extends Controller
return abort(404, trans('admin.plugins.operations.no-readme-notice')); return abort(404, trans('admin.plugins.operations.no-readme-notice'));
} }
$title = $plugin->title; $title = trans($plugin->title);
$path = $plugin->getPath().'/'.$readmePath; $path = $plugin->getPath().'/'.$readmePath;
$parsedown = new Parsedown(); $parsedown = new Parsedown();
$content = $parsedown->text(file_get_contents($path)); $content = $parsedown->text(file_get_contents($path));