vogelor
2011-03-29 6867428619db14031ece087834bdefcb724c3ed4
moved the temporary data of the rescue-module to the temp folder
1 files modified
6 ■■■■ changed files
server/mods-available/rescue_core_module.inc.php 6 ●●●● patch | view | raw | blame | history
server/mods-available/rescue_core_module.inc.php
@@ -113,7 +113,7 @@
    private function _getMonitoringData() {
        global $app;
        
        $dataFilename = dirname(__FILE__) . "/../lib/rescue_module_monitoringdata.ser.txt";
        $dataFilename = dirname(__FILE__) . "/../temp/rescue_module_monitoringdata.ser.txt";
        
        /*
         * If the file containing the data is too old (older than 5 minutes) it is better to
@@ -175,7 +175,7 @@
     * so we do not have parallel access.
     */
    private function _getRescueData() {
        $dataFilename = dirname(__FILE__) . "/../lib/rescue_module_rescuedata.ser.txt";
        $dataFilename = dirname(__FILE__) . "/../temp/rescue_module_rescuedata.ser.txt";
        /*
         * If the file containing the data is too old (older than 5 minutes) it is better to
@@ -206,7 +206,7 @@
     * so we do not have parallel access.
     */
    private function _saveRescueData() {
        $dataFilename = dirname(__FILE__) . "/../lib/rescue_module_rescuedata.ser.txt";
        $dataFilename = dirname(__FILE__) . "/../temp/rescue_module_rescuedata.ser.txt";
        file_put_contents($dataFilename, serialize($this->_rescueData));
    }