mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 23:31:44 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@736 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fa23900142
commit
278178735f
7 changed files with 5 additions and 35 deletions
|
|
@ -16,12 +16,8 @@
|
|||
|
||||
/**
|
||||
* @brief 플러그인의 경로를 구함
|
||||
* 기본으로는 ./plugins에 있지만 웹관리기능으로 다운로드시 ./files/plugins에 존재함
|
||||
**/
|
||||
function getPluginPath($plugin_name) {
|
||||
$path = sprintf('./files/plugins/%s/', $plugin_name);
|
||||
if(is_dir($path)) return $path;
|
||||
|
||||
$path = sprintf('./plugins/%s/', $plugin_name);
|
||||
if(is_dir($path)) return $path;
|
||||
|
||||
|
|
@ -34,9 +30,7 @@
|
|||
**/
|
||||
function getDownloadedPluginList() {
|
||||
// 다운받은 플러그인과 설치된 플러그인의 목록을 구함
|
||||
$downloaded_list = FileHandler::readDir('./files/plugins');
|
||||
$installed_list = FileHandler::readDir('./plugins');
|
||||
$searched_list = array_merge($downloaded_list, $installed_list);
|
||||
$searched_list = FileHandler::readDir('./plugins');
|
||||
$searched_count = count($searched_list);
|
||||
if(!$searched_count) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue