replace hash method

This commit is contained in:
祁宁
2014-04-25 09:38:17 +08:00
parent d9ee03df73
commit 10b7d336ba
5 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -8,4 +8,6 @@ if (!isset($panelTable['file']) || !in_array(urlencode($panel), $panelTable['fil
throw new Typecho_Plugin_Exception(_t('页面不存在'), 404);
}
require_once $panel;
list ($pluginName, $file) = explode('/', trim('/', $panel), 2);
require_once $options->pluginDir($pluginName) . '/' . $file;