Skip to content

Commit

Permalink
Remove Deprecated library code json_encode and json_decode wrapper as…
Browse files Browse the repository at this point in the history
… it is native in php5.2 onwards
  • Loading branch information
Wakie87 authored and bradymiller committed Aug 8, 2016
1 parent addd1c9 commit 49b5f35
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 919 deletions.
5 changes: 0 additions & 5 deletions interface/batchcom/batch_reminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
require_once($GLOBALS['srcdir'] . "/reminders.php");
require_once($GLOBALS['srcdir'] . "/report_database.inc");

// This is only pertinent for users of php versions less than 5.2
// (ie. this wrapper is only loaded when php version is less than
// 5.2; otherwise the native php json functions are used)
require_once "$srcdir/jsonwrapper/jsonwrapper.php";

//To improve performance and not freeze the session when running this
// report, turn off session writing. Note that php session variables
// can not be modified after the line below. So, if need to do any php
Expand Down
1 change: 0 additions & 1 deletion interface/forms/fee_sheet/review/fee_sheet_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

require_once("../../../globals.php");
require_once("fee_sheet_queries.php");
include_once("$srcdir/jsonwrapper/jsonwrapper.php");

if(!acl_check('acct', 'bill'))
{
Expand Down
3 changes: 1 addition & 2 deletions interface/forms/fee_sheet/review/fee_sheet_justify.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
$sanitize_all_escapes=true;

require_once("../../../globals.php");

require_once("fee_sheet_queries.php");
include_once("$srcdir/jsonwrapper/jsonwrapper.php");

if(!acl_check('acct', 'bill'))
{
header("HTTP/1.0 403 Forbidden");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

require_once("../../../globals.php");
require_once("fee_sheet_options_queries.php");
include_once("$srcdir/jsonwrapper/jsonwrapper.php");

if(!acl_check('acct', 'bill'))
{
header("HTTP/1.0 403 Forbidden");
Expand Down
1 change: 0 additions & 1 deletion interface/forms/fee_sheet/review/fee_sheet_search_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
require_once("../../../globals.php");
require_once("fee_sheet_classes.php");
require_once("fee_sheet_search_queries.php");
include_once("$srcdir/jsonwrapper/jsonwrapper.php");

if(!acl_check('acct', 'bill'))
{
Expand Down
1 change: 0 additions & 1 deletion interface/main/finder/dynamic_finder_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
require_once("../../globals.php");
require_once("$srcdir/formdata.inc.php");
require_once("$srcdir/formatting.inc.php");
require_once("$srcdir/jsonwrapper/jsonwrapper.php");

$popup = empty($_REQUEST['popup']) ? 0 : 1;

Expand Down
5 changes: 0 additions & 5 deletions interface/reports/cqm.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
require_once "$srcdir/clinical_rules.php";
require_once "$srcdir/report_database.inc";

// This is only pertinent for users of php versions less than 5.2
// (ie. this wrapper is only loaded when php version is less than
// 5.2; otherwise the native php json functions are used)
require_once "$srcdir/jsonwrapper/jsonwrapper.php";

// See if showing an old report or creating a new report
$report_id = (isset($_GET['report_id'])) ? trim($_GET['report_id']) : "";

Expand Down
5 changes: 0 additions & 5 deletions library/clinical_rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
require_once(dirname(__FILE__) . "/options.inc.php");
require_once(dirname(__FILE__) . "/report_database.inc");

// This is only pertinent for users of php versions less than 5.2
// (ie. this wrapper is only loaded when php version is less than
// 5.2; otherwise the native php json functions are used)
require_once(dirname(__FILE__) . "/jsonwrapper/jsonwrapper.php");

/**
* Return listing of CDR reminders in log.
*
Expand Down
Loading

0 comments on commit 49b5f35

Please sign in to comment.