diff --git a/inc/tz/capabilities.php b/inc/tz/capabilities.php
index fd2610d3..7d8105f2 100644
--- a/inc/tz/capabilities.php
+++ b/inc/tz/capabilities.php
@@ -8,14 +8,26 @@
* @copyright Morphoss Ltd
* @license http://gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-
+$primary_source = '';
+$source = '';
+if ( substr($c->tzsource,0,4) == 'http' ) {
+ $source = ''.$c->tzsource.'';
+}
+else {
+ if ( empty($c->tzsource) ) $c->tzsource = '../zonedb/vtimezones';
+ if ( file_exists($c->tzsource.'/primary-source') ) {
+ $primary_source = ''.file_get_contents($c->tzsource.'/primary-source').'';
+ }
+}
+$contact = $c->admin_email;
header('Content-Type: application/xml; charset="utf-8"');
-?>
+
+echo <<
- Olson:2011m
- mailto:tzs@example.org
+ $primary_source$source
+ mailto:$contact
@@ -121,5 +133,6 @@ header('Content-Type: application/xml; charset="utf-8"');
Gets the capabilities of the server
-
- Olson:2011m
+ Olson tzdata2011j
+
mailto:tzs@example.org
@@ -112,4 +113,4 @@ Content-Type: application/xml; charset="utf-8"
capabilities
Gets the capabilities of the server
-
+
\ No newline at end of file