plugins/admin/PluginManager.php
changeset 812 68060328e9c6
parent 801 eb8b23f11744
child 844 7549f2880c32
equal deleted inserted replaced
811:5c807fe77020 812:68060328e9c6
   121   
   121   
   122   // Are we processing an AJAX request from the smartform?
   122   // Are we processing an AJAX request from the smartform?
   123   if ( $paths->getParam(0) == 'action.json' )
   123   if ( $paths->getParam(0) == 'action.json' )
   124   {
   124   {
   125     // Set to application/json to discourage advertisement scripts
   125     // Set to application/json to discourage advertisement scripts
   126     header('Content-Type: application/json');
   126     header('Content-Type: text/javascript');
   127     
   127     
   128     // Init return data
   128     // Init return data
   129     $return = array('mode' => 'error', 'error' => 'undefined');
   129     $return = array('mode' => 'error', 'error' => 'undefined');
   130     
   130     
   131     // Start parsing process
   131     // Start parsing process