src build elFinder-2.1-0476faa

This commit is contained in:
nao-pon
2015-11-23 01:37:07 +09:00
parent 1439891907
commit 7e2470ff5c
7 changed files with 20 additions and 10 deletions
+11 -1
View File
@@ -13,6 +13,14 @@
**/
abstract class elFinderVolumeDriver {
/**
* Request args
* $_POST or $_GET values
*
* @var array
*/
protected $ARGS = array();
/**
* Driver id
* Must be started from letter and contains [a-z0-9]
@@ -557,6 +565,8 @@ abstract class elFinderVolumeDriver {
* @author Dmitry (dio) Levashov
**/
protected function configure() {
// set ARGS
$this->ARGS = $_SERVER['REQUEST_METHOD'] === 'POST'? $_POST : $_GET;
// set thumbnails path
$path = $this->options['tmbPath'];
if ($path) {
@@ -708,7 +718,7 @@ abstract class elFinderVolumeDriver {
$this->encoding = null;
}
$argInit = ($_SERVER['REQUEST_METHOD'] === 'POST')? !empty($_POST['init']) : !empty($_GET['init']);
$argInit = !empty($this->ARGS['init']);
// session cache
if ($argInit || ! isset($_SESSION[elFinder::$sessionCacheKey][$this->id])) {