X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/aa171727dc595bfccaffbf8be178f16639827111..078a50aeed0f055af710b51bc71f109d8ffc1318:/lib/functions.js.php diff --git a/lib/functions.js.php b/lib/functions.js.php index e981e35..fbce522 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -17,7 +17,9 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ + header('Content-Type: text/javascript'); + define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/../'); require (JIRAFEAU_ROOT . 'lib/config.original.php'); require (JIRAFEAU_ROOT . 'lib/settings.php'); @@ -204,7 +206,7 @@ function add_time_string_to_date(d, time) { return false; } - + if (time == 'minute') { d.setSeconds (d.getSeconds() + 60);