mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 11:49:56 +09:00
#17756508 : change newline into PHP_EOL to make it compatible to windows
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5805 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2aff676b6d
commit
35c15f5da6
1 changed files with 2 additions and 3 deletions
|
|
@ -80,8 +80,7 @@
|
|||
);
|
||||
|
||||
$buff = $this->execCmd($command, $error);
|
||||
|
||||
$list = explode("\n",$buff);
|
||||
$list = explode(PHP_EOL,$buff);
|
||||
|
||||
if(!count($list)) return null;
|
||||
|
||||
|
|
@ -365,7 +364,7 @@
|
|||
|
||||
function explodePath($source_path, $is_file = false) {
|
||||
if(!$source_path) return;
|
||||
|
||||
$source_path = rtrim($source_path);
|
||||
$arr_path = explode('/', $source_path);
|
||||
if(substr($source_path,-1)!='/') $file = array_pop($arr_path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue