[gollem] Simple Changes

Michael Varghese mike.varghese@ascellatech.com
Tue, 16 Jul 2002 12:53:08 -0400


I noticed some a small error in horde/lib/VFS/file.php and I changed some
code in gollem/view.php to check if there was an error in reading the file
data.  If there was no error, then download the file, else notify the user.

-Mike

Index: file.php
===================================================================
RCS file: /repository/horde/lib/VFS/file.php,v
retrieving revision 1.8
diff -r1.8 file.php
90c90
<         $fp = fopen($this->_getNativePath($path, $name), 'w');
---
>         $fp = @fopen($this->_getNativePath($path, $name), 'w');






Index: gollem/view.php
===================================================================
RCS file: /repository/gollem/view.php,v
retrieving revision 1.19
diff -r1.19 view.php
34,35c34,41
<      $browser->downloadHeaders($filename);
<      echo $data;
---
>      if (!PEAR::isError($data)) {
>         $browser->downloadHeaders($filename);
>         echo $data;
>      }
>      else {
>         $notification->push(_("Access denied to ") . $filename,
'horde.error');
>         header('Location: ' .
Horde::applicationUrl('manager.php?actionID=' . $actionID, true));
>      }