Support JavaScript code in mask definitions
authorJoey Schulze <joey@infodrom.org>
Sat, 27 Feb 2010 14:06:12 +0000 (15:06 +0100)
committerJoey Schulze <joey@infodrom.org>
Sat, 27 Feb 2010 14:06:12 +0000 (15:06 +0100)
lib/general.php

index 524be12..9900bf6 100644 (file)
@@ -35,6 +35,7 @@ function sanitise_filename($file)
 function load_mask($name)
 {
   global $mask;
+  global $jscode;
 
   $name = sanitise_filename($name);
   $file = $_SESSION['sys']['basedir'] . 'masks/' . $name . '.php';