~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to api/src/Module/Movies.php

  • Committer: Keith Hughitt
  • Date: 2010-08-25 18:39:52 UTC
  • mto: This revision was merged to the branch mainline in revision 525.
  • Revision ID: hughitt1@kore-20100825183952-vc2bjsw80kmh1h5v
Dynamo error-handling overhauled: Individual log files created for each error incident (except in the cases of expected errors). Run-time errors all return JSON "error" field. Both high-level and low-level description of movie related errors included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
            try {
61
61
                $this->{$this->_params['action']}();
62
62
            } catch (Exception $e) {
63
 
                printErrorMsg($e->getMessage());
 
63
                handleError($e->getMessage(), $e->getCode());
64
64
            }
65
65
        }
66
66
    }
137
137
        // Make a temporary directory to store the movie in.
138
138
        $now    = date("Ymd_His");
139
139
        
140
 
        $tmpDir = HV_TMP_DIR . "/$now";
 
140
        $tmpDir = HV_CACHE_DIR . "/movies/$now";
 
141
 
141
142
        if (!file_exists($tmpDir)) {
142
143
            mkdir($tmpDir, 0777, true);
143
144
            chmod($tmpDir, 0777);