Skip to content

Commit 9689f06

Browse files
committed
Removed _format_jsonp which depends on file extension .jsonp or 'format' query param;
1 parent 7e262f4 commit 9689f06

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

application/libraries/REST_Controller.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,19 +1467,4 @@ protected function _check_access()
14671467
return FALSE;
14681468
}
14691469

1470-
1471-
// FORMATING FUNCTIONS ---------------------------------------------------------
1472-
// Many of these have been moved to the Format class for better separation, but these methods will be checked too
1473-
1474-
/**
1475-
* Encode as JSONP
1476-
*
1477-
* @param array $data The input data.
1478-
* @return string The JSONP data string (loadable from Javascript).
1479-
*/
1480-
protected function _format_jsonp($data = array())
1481-
{
1482-
return $this->get('callback').'('.json_encode($data).')';
1483-
}
1484-
14851470
}

0 commit comments

Comments
 (0)