<?php
/***************************************************************************
- * Copyright (C) 2003-2008 Polytechnique.org *
+ * Copyright (C) 2003-2009 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once 'platal.inc.php';
function smarty_compiler_javascript($tag_attrs, &$compiler)
{
}
$name = pl_entities(trim($name, '\'"'), ENT_QUOTES);
$name = "javascript/$name.js";
- if ($full) {
+ if (isset($full) && $full) {
global $globals;
$name = $globals->baseurl . '/' . $name;
}