diff options
author | Stanislau Wolski <stanislau.wolski@gmail.com> | 2013-02-05 12:37:08 -0800 |
---|---|---|
committer | Stanislau Wolski <stanislau.wolski@gmail.com> | 2013-02-05 12:37:08 -0800 |
commit | e31493999641e1b538c62b313fd6d7eb7fa2f74f (patch) | |
tree | 40eceebc3be251ddb819a33550606429e01f6e23 /codebase/convert.php | |
parent | 2b095bc184f2db05f9895db11c270c95361296e7 (diff) | |
download | connector-php-e31493999641e1b538c62b313fd6d7eb7fa2f74f.zip connector-php-e31493999641e1b538c62b313fd6d7eb7fa2f74f.tar.gz connector-php-e31493999641e1b538c62b313fd6d7eb7fa2f74f.tar.bz2 |
[update] flexible var naming
Diffstat (limited to 'codebase/convert.php')
-rw-r--r-- | codebase/convert.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/codebase/convert.php b/codebase/convert.php index 59e85ab..f24922c 100644 --- a/codebase/convert.php +++ b/codebase/convert.php @@ -41,6 +41,10 @@ class ConvertService{ } public function convert($conn, $out){ + $str_out = str_replace("<rows>","<rows profile='color'>", $out); + $str_out = str_replace("<head>","<head><columns>", $str_out); + $str_out = str_replace("</head>","</columns></head>", $str_out); + if ($this->type == "pdf") header("Content-type: application/pdf"); else @@ -50,7 +54,7 @@ class ConvertService{ curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_HEADER, false); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); - curl_setopt($handle, CURLOPT_POSTFIELDS, "grid_xml=".urlencode(str_replace("<rows>","<rows profile='color'>", $out))); + curl_setopt($handle, CURLOPT_POSTFIELDS, "grid_xml=".urlencode($str_out)); $out->reset(); |