* Copyright: See COPYING files that comes with this distribution
********************************************************************************/
-require_once 'smarty/libs/Smarty.class.php';
+if (!include_once('Smarty.class.php')) {
+ require_once 'smarty/libs/Smarty.class.php';
+}
class BananaPage extends Smarty
{
*/
public function makeJs($src)
{
+ if (!Banana::$msgshow_javascript) {
+ return '';
+ }
if (function_exists('hook_makeJs')
&& $res = hook_makeJs($src)) {
return $res;