source/php/App.php
public function replaceFile($original, $replacement)
    {
        $this->removeThumbnails($original);

        if (copy($replacement, $original)) {
            return $original;
        }

        return false;
    }
public function replaceFile($original, $replacement)
    {
        $this->removeThumbnails($original);

        if (copy($replacement, $original)) {
            return $original;
        }

        return false;
    }
public function replaceFile ( $ original , $ replacement ) { $ this -> removeThumbnails ( $ original ) ; if ( copy ( $ replacement , $ original ) ) { return $ original ; } return false ; }
Replaces a file
@param  string $original    Path to original
@param  string $replacement Path to replacement
@return string|boolean
Replaces a file