In one of my website page, I use an ajax call to get JSON data (similar to what is described in this page).
Unfortunately it didn't work directly because the the return JSON data is appended with the footer
Looking at the code, I saw this was added when one has no paid license. So to solve this issue, I had to modify the file couch/cms.php (line 331) like this:
By modifying the core file, I hope I don't violate the open source license...
Olivier
Unfortunately it didn't work directly because the the return JSON data is appended with the footer
- Code: Select all
<!-- Page generated by CouchCMS - Simple Open-Source Content Management -->
Looking at the code, I saw this was added when one has no paid license. So to solve this issue, I had to modify the file couch/cms.php (line 331) like this:
- Code: Select all
if( !K_PAID_LICENSE && ($content_type != "application/json")){
$html .= "\n<!-- Page generated by CouchCMS - Simple Open-Source Content Management";
$html .= " -->\n";
}
By modifying the core file, I hope I don't violate the open source license...
Olivier