diff --git a/src/_h5ai/client/js/inc/ext/custom.js b/src/_h5ai/client/js/inc/ext/custom.js index ce61cb5a..e51a43c5 100644 --- a/src/_h5ai/client/js/inc/ext/custom.js +++ b/src/_h5ai/client/js/inc/ext/custom.js @@ -22,7 +22,7 @@ modulejs.define('ext/custom', ['_', '$', 'marked', 'core/event', 'core/server', if (data.header) { content = data.header; - if (data.header_type === 'md') { + if (data.headerType === 'md') { content = marked(content); } $header.html(content).stop().slideDown(duration); @@ -31,7 +31,7 @@ modulejs.define('ext/custom', ['_', '$', 'marked', 'core/event', 'core/server', if (data.footer) { content = data.footer; - if (data.footer_type === 'md') { + if (data.footerType === 'md') { content = marked(content); } $footer.html(content).stop().slideDown(duration); diff --git a/src/_h5ai/server/php/inc/class-app.php b/src/_h5ai/server/php/inc/class-app.php index f96aa31a..d401b7ba 100644 --- a/src/_h5ai/server/php/inc/class-app.php +++ b/src/_h5ai/server/php/inc/class-app.php @@ -337,9 +337,9 @@ class App { if (!$this->get_option("custom.enabled", false)) { return array( "header" => null, - "header_type" => null, + "headerType" => null, "footer" => null, - "footer_type" => null + "footerType" => null ); } @@ -374,9 +374,9 @@ class App { return array( "header" => $header, - "header_type" => $header_type, + "headerType" => $header_type, "footer" => $footer, - "footer_type" => $footer_type + "footerType" => $footer_type ); } }