}
public function get_listing($uuid = '', $path = '') {
- global $CFG, $SESSION;
-
+ global $CFG, $SESSION, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$ret = array();
$ret['dynload'] = true;
$ret['list'] = array();
* @return mixed
*/
public function search($search_text) {
- global $CFG;
+ global $CFG, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$list = array();
$ret = array();
$tree = $this->box->getAccountTree();
* @return mixed
*/
public function get_listing($path = '', $page = '') {
- global $CFG, $USER, $itemid;
+ global $CFG, $USER, $itemid, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$ret = array();
$ret['dynload'] = true;
$ret['nosearch'] = true;
set_time_limit(0);
require_login();
+$OUTPUT->initialise_deprecated_cfg_pixpath();
$page = optional_param('page', '', PARAM_RAW); // page
$client_id = optional_param('client_id', SITEID, PARAM_RAW); // client ID
}
}
public function get_listing($path = '', $page = '') {
- global $CFG;
+ global $CFG, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$list = array();
$list['list'] = array();
* @return array information of file in file pool
*/
public static function move_to_filepool($path, $name, $itemid, $filearea = 'user_draft') {
- global $DB, $CFG, $USER;
+ global $DB, $CFG, $USER, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$context = get_context_instance(CONTEXT_USER, $USER->id);
$now = time();
$entry = new object();
* todo: take $search into account, and respect a threshold for dynamic loading
*/
public static function build_tree($fileinfo, $search, $dynamicmode, &$list) {
- global $CFG;
+ global $CFG, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$filecount = 0;
$children = $fileinfo->get_children();
* @return mixed
*/
public function get_listing($encodedpath = '', $page = '', $search = '') {
- global $CFG, $USER;
+ global $CFG, $USER, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$ret = array();
$ret['dynload'] = true;
$ret['nosearch'] = true;
* @return <type>
*/
public function get_listing($path = null, $page = 1, $search = '') {
- global $CFG, $DB, $USER;
+ global $CFG, $DB, $USER, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
///check that Mahara has a good version
///We also check that the "get file list" method has been activated (if it is not
$this->s = new S3($this->access_key, $this->secret_key);
}
public function get_listing($path = '', $page = '') {
- global $CFG;
+ global $CFG, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$list = array();
$list['list'] = array();
// the management interface url
* @return array
*/
public function get_listing($path='', $page='') {
- global $CFG;
- set_time_limit(0);
+ global $CFG, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$ret = array();
$curl = new curl;
$msg = $curl->head($this->file_url);
return $ret;
}
public function analyse_page($baseurl, $content, &$list) {
- global $CFG;
+ global $CFG, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$pattern = '#src="?\'?([[:alnum:]:?=&@/._+-]+)"?\'?#i';
$matches = null;
preg_match_all($pattern, $content, $matches);
return false;
}
public function get_listing($path='', $page = '') {
- global $CFG;
+ global $CFG, $OUTPUT;
+ $OUTPUT->initialise_deprecated_cfg_pixpath();
$list = array();
$ret = array();
$ret['dynload'] = true;