Commit 9d7a9302 authored by Aaron Wells's avatar Aaron Wells
Browse files

Bug 1611995: Remove redundant file

This file was accidentally left in place when profileicons
were moved from internal artefacts to file artefacts. It's
now redundant with artefact/file/profileicons.json.php

Change-Id: I544cda768e636a0076595ed64f49425fe1607e41
behatnotneeded: Covered by existing tests
parent 05e80bb9
* @package mahara
* @subpackage core
* @author Catalyst IT Ltd
* @license GNU GPL version 3 or later
* @copyright For copyright information on Mahara, please see the README file distributed with this software.
define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
$result = get_records_sql_array('SELECT, a.title, a.note, (u.profileicon = AS isdefault
FROM {artefact} a
ON ( = a.owner)
WHERE artefacttype = \'profileicon\'
AND a.owner = ?
ORDER BY', array($USER->get('id')));
if(!$result) {
$result = array();
$data['error'] = false;
$data['data'] = $result;
$data['count'] = ($result) ? count($result) : 0;
echo json_encode($data);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment