includes/pageutils.php
changeset 582 a38876c0793c
parent 536 218a627eb53e
child 593 4f9bec0d65c1
equal deleted inserted replaced
581:5e8fd89c02ea 582:a38876c0793c
  1975    */
  1975    */
  1976    
  1976    
  1977   public static function acl_json($parms = '{ }')
  1977   public static function acl_json($parms = '{ }')
  1978   {
  1978   {
  1979     global $db, $session, $paths, $template, $plugins; // Common objects
  1979     global $db, $session, $paths, $template, $plugins; // Common objects
  1980     $parms = enano_json_decode($parms);
  1980     try
       
  1981     {
       
  1982       $parms = enano_json_decode($parms);
       
  1983     }
       
  1984     catch ( Zend_Json_Exception $e )
       
  1985     {
       
  1986       $parms = array();
       
  1987     }
  1981     $ret = PageUtils::acl_editor($parms);
  1988     $ret = PageUtils::acl_editor($parms);
  1982     $ret = enano_json_encode($ret);
  1989     $ret = enano_json_encode($ret);
  1983     return $ret;
  1990     return $ret;
  1984   }
  1991   }
  1985   
  1992