summaryrefslogtreecommitdiffstats
path: root/usr/local/www/graph_cpu.php
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-30 09:22:36 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-30 09:22:36 -0300
commit846b664dd7a9021887a2396bfc76cf76f5142529 (patch)
treed64203df753f8c5965e004d66ac3b7ae3e306360 /usr/local/www/graph_cpu.php
parent8454080afe93138db138563316c3726116d801d3 (diff)
downloadpfsense-846b664dd7a9021887a2396bfc76cf76f5142529.zip
pfsense-846b664dd7a9021887a2396bfc76cf76f5142529.tar.gz
Fix gettext implementation on graph_cpu.php
Diffstat (limited to 'usr/local/www/graph_cpu.php')
-rw-r--r--usr/local/www/graph_cpu.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/graph_cpu.php b/usr/local/www/graph_cpu.php
index 87743c7..3908153 100644
--- a/usr/local/www/graph_cpu.php
+++ b/usr/local/www/graph_cpu.php
@@ -91,14 +91,14 @@ print('<?xml version="1.0" encoding="iso-8859-1"?>' . "\n");?>
if (typeof getURL == 'undefined') {
getURL = function(url, callback) {
if (!url)
- throw gettext('No URL for getURL');
+ throw '<?=gettext("No URL for getURL"); ?>';
try {
if (typeof callback.operationComplete == 'function')
callback = callback.operationComplete;
} catch (e) {}
if (typeof callback != 'function')
- throw gettext('No callback function for getURL');
+ throw '<?=gettext("No callback function for getURL"); ?>';
var http_request = null;
if (typeof XMLHttpRequest != 'undefined') {
@@ -114,7 +114,7 @@ if (typeof getURL == 'undefined') {
}
}
if (!http_request)
- throw gettext('Both getURL and XMLHttpRequest are undefined');
+ throw '<?=gettext("Both getURL and XMLHttpRequest are undefined"); ?>';
http_request.onreadystatechange = function() {
if (http_request.readyState == 4) {
OpenPOWER on IntegriCloud