mirror of
https://github.com/typecho/typecho.git
synced 2025-03-18 08:59:40 +01:00
fix plugin name
This commit is contained in:
parent
50dea3fc24
commit
ecd21c2557
@ -348,10 +348,10 @@ class Plugin
|
||||
{
|
||||
switch (true) {
|
||||
case file_exists($pluginFileName = $path . '/' . $pluginName . '/Plugin.php'):
|
||||
$className = "\\{$pluginName}\Plugin";
|
||||
$className = "{$pluginName}_Plugin";
|
||||
break;
|
||||
case file_exists($pluginFileName = $path . '/' . $pluginName . '.php'):
|
||||
$className = "\\{$pluginName}";
|
||||
$className = $pluginName;
|
||||
break;
|
||||
default:
|
||||
throw new PluginException('Missing Plugin ' . $pluginName, 404);
|
||||
|
Loading…
x
Reference in New Issue
Block a user