Skip to content

Instantly share code, notes, and snippets.

@amoore
amoore / gist:1030180
Created June 16, 2011 20:28
absolute links for URLs in embedded patient summary stats in stats.php
diff --git a/interface/patient_file/summary/stats.php b/interface/patient_file/summary/stats.php
index c4b5397..2d9fbc6 100644
--- a/interface/patient_file/summary/stats.php
+++ b/interface/patient_file/summary/stats.php
@@ -64,7 +64,7 @@ foreach ($ISSUE_TYPES as $key => $arr) {
$widgetTitle = $arr[0];
$widgetLabel = $key;
$widgetButtonLabel = xl("Edit");
- $widgetButtonLink = "load_location(\"stats_full.php?active=all\")";
+ $widgetButtonLink = "load_location(\"${GLOBALS['webroot']}/interface/patient_file/summary/stats_full.php?active=all\")";
From 00106e46f7906c004badc9e06acd1f8f04925363 Mon Sep 17 00:00:00 2001
From: Andrew Moore <amoore@cpan.org>
Date: Mon, 31 May 2010 12:56:54 -0500
Subject: [PATCH] refactoring common code for facilities drop-down into library
I recently added code to escape HTML characters from several
drop-downs for selecting facilities. Since that code was substantially
the same in several files, this patch refactors those drop-downs out
into a new function in patient.inc.
---