src/Pqb/FilemanagerLaravel/Filemanager.php
public function setFileRoot($path) {
		if($this->config['options']['serverRoot'] === true) {
			$this->doc_root = $_SERVER['DOCUMENT_ROOT']. '/'.  $path;
		} else {
			$this->doc_root =  $path;
		}
		// necessary for retrieving path when set dynamically with $fm->setFileRoot() method
		$this->dynamic_fileroot = str_replace($_SERVER['DOCUMENT_ROOT'], '', $this->doc_root);
		$this->separator = basename($this->doc_root);
		$this->__log(__METHOD__ . ' $this->doc_root value overwritten : ' . $this->doc_root);
		$this->__log(__METHOD__ . ' $this->dynamic_fileroot value ' . $this->dynamic_fileroot);
		$this->__log(__METHOD__ . ' $this->separator value ' . $this->separator);
	}
public function setFileRoot($path) {
		if($this->config['options']['serverRoot'] === true) {
			$this->doc_root = $_SERVER['DOCUMENT_ROOT']. '/'.  $path;
		} else {
			$this->doc_root =  $path;
		}
		// necessary for retrieving path when set dynamically with $fm->setFileRoot() method
		$this->dynamic_fileroot = str_replace($_SERVER['DOCUMENT_ROOT'], '', $this->doc_root);
		$this->separator = basename($this->doc_root);
		$this->__log(__METHOD__ . ' $this->doc_root value overwritten : ' . $this->doc_root);
		$this->__log(__METHOD__ . ' $this->dynamic_fileroot value ' . $this->dynamic_fileroot);
		$this->__log(__METHOD__ . ' $this->separator value ' . $this->separator);
	}
public function setFileRoot ( $ path ) { if ( $ this -> config [ 'options' ] [ 'serverRoot' ] === true ) { $ this -> doc_root = $ _SERVER [ 'DOCUMENT_ROOT' ] . '/' . $ path ; } else { $ this -> doc_root = $ path ; } // necessary for retrieving path when set dynamically with $fm->setFileRoot() method $ this -> dynamic_fileroot = str_replace ( $ _SERVER [ 'DOCUMENT_ROOT' ] , '' , $ this -> doc_root ) ; $ this -> separator = basename ( $ this -> doc_root ) ; $ this -> __log ( __METHOD__ . ' $this->doc_root value overwritten : ' . $ this -> doc_root ) ; $ this -> __log ( __METHOD__ . ' $this->dynamic_fileroot value ' . $ this -> dynamic_fileroot ) ; $ this -> __log ( __METHOD__ . ' $this->separator value ' . $ this -> separator ) ; }
allow Filemanager to be used with dynamic folders
allow Filemanager to be used with dynamic folders