Changeset 384


Ignore:
Timestamp:
Mar 14, 2010, 10:30:08 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Zobrazení názvu nenalezeného souboru u třídy FileStream.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/stream.php

    r247 r384  
    11<?php
    22
    3 define('FILE_NOT_FOUND', 'Soubor nenalezen.');
     3define('FILE_NOT_FOUND', 'Soubor "%s" nenalezen.');
    44
    55class FileStream
     
    2424    $this->CloseFile();
    2525    $this->Handle = fopen($FileName, 'rb');
    26     if(!$this->Handle) die(FILE_NOT_FOUND); 
     26    if(!$this->Handle) die(str_replace('%s', $FileName, FILE_NOT_FOUND)); 
    2727  }
    2828
     
    3232    $this->CloseFile();
    3333    $this->Handle = fopen($FileName, 'wb+');
    34     if(!$this->Handle) die(FILE_NOT_FOUND); 
     34    if(!$this->Handle) die(str_replace('%s', $FileName, FILE_NOT_FOUND)); 
    3535  }
    3636 
Note: See TracChangeset for help on using the changeset viewer.