fix server side render

on devices listet in $config['cops_server_side_render'] a blank page was shown and apache error log reported all to undefined function getJson() in index.php
This commit is contained in:
miicha 2014-03-05 10:46:44 +01:00
parent cb07d38590
commit 0e6ef2fcd9

View file

@ -3,7 +3,7 @@
* COPS (Calibre OPDS PHP Server) HTML main script
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Sébastien Lucas <sebastien@slucas.fr>
* @author S<EFBFBD>bastien Lucas <sebastien@slucas.fr>
*
*/
@ -60,7 +60,8 @@
<?php
if (useServerSideRendering ()) {
// Get the data
$data = getJson (true);
require_once ("JSON_renderer.php");
$data = JSONRenderer::getJson (true);
echo serverSideRender ($data);
}