diff options
author | Evan Prodromou <evan@status.net> | 2010-09-23 09:50:46 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-23 09:50:46 -0400 |
commit | 0f1fc36a05c8d858827718255bef20e8d0c0d3f6 (patch) | |
tree | 7be7f3fabe27e9780c37de7483807d28ef3dfcf4 /plugins/OStatus/lib/xrd.php | |
parent | 77609e0c4a1b76748ab320027b0696aced92b52c (diff) | |
parent | 5f409a0d7caa3b075657eef947deb7b62452b82d (diff) |
Merge branch '0.9.x'
Diffstat (limited to 'plugins/OStatus/lib/xrd.php')
-rw-r--r-- | plugins/OStatus/lib/xrd.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/OStatus/lib/xrd.php b/plugins/OStatus/lib/xrd.php index 145cd64cb..c8cffed9c 100644 --- a/plugins/OStatus/lib/xrd.php +++ b/plugins/OStatus/lib/xrd.php @@ -27,7 +27,6 @@ * @link http://status.net/ */ - class XRD { const XML_NS = 'http://www.w3.org/2000/xmlns/'; @@ -61,11 +60,13 @@ class XRD error_reporting($old); if (!$ok) { - throw new Exception("Invalid XML."); + // TRANS: Exception. + throw new Exception(_m('Invalid XML.')); } $xrd_element = $dom->getElementsByTagName('XRD')->item(0); if (!$xrd_element) { - throw new Exception("Invalid XML, missing XRD root."); + // TRANS: Exception. + throw new Exception(_m('Invalid XML, missing XRD root.')); } // Check for host-meta host |