[REF] Remove never-passed param from getLineItems
[civicrm-core.git] / CRM / Badge / Page / AJAX.php
CommitLineData
07d113b7
PJ
1<?php
2/*
3 +--------------------------------------------------------------------+
bc77d7c0 4 | Copyright CiviCRM LLC. All rights reserved. |
07d113b7 5 | |
bc77d7c0
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
07d113b7 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
07d113b7
PJ
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
07d113b7
PJ
16 *
17 */
07d113b7 18class CRM_Badge_Page_AJAX {
f157740d 19
00be9182 20 public static function getImageProp() {
07d113b7 21 $img = $_GET['img'];
3a872e59 22 list($w, $h) = CRM_Badge_BAO_Badge::getImageProperties($img);
be2fb01f 23 CRM_Utils_JSON::output(['width' => $w, 'height' => $h]);
07d113b7 24 }
96025800 25
ecdef330 26}