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

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
<?php
/**
*
* @package mahara
* @subpackage core
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html 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.id, a.title, a.note, (u.profileicon = a.id) AS isdefault
FROM {artefact} a
LEFT OUTER JOIN {usr} u
ON (u.id = a.owner)
WHERE artefacttype = \'profileicon\'
AND a.owner = ?
ORDER BY a.id', array($USER->get('id')));
if(!$result) {
$result = array();
}
json_headers();
$data['error'] = false;
$data['data'] = $result;
$data['count'] = ($result) ? count($result) : 0;
echo json_encode($data);
Markdown is supported
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