2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Merged from McMasterReports branch

This commit is contained in:
azammitdcarf
2010-01-14 07:45:37 +00:00
parent 18dbb16138
commit d1b139d315
1884 changed files with 555891 additions and 364768 deletions

View File

@@ -300,7 +300,7 @@ if ($translationmode==1)
} else {
$header = $this->get_translation_string(0);
}
if (eregi("plural-forms: ([^\n]*)\n", $header, $regs))
if (preg_match("/plural-forms: ([^\n]*)\n/i", $header, $regs))
$expr = $regs[1];
else
$expr = "nplurals=2; plural=n == 1 ? 0 : 1;";

View File

@@ -87,7 +87,7 @@ class FileReader {
var $_length;
function FileReader($filename) {
if (file_exists($filename)) {
if (is_file($filename)) {
$this->_length=filesize($filename);
$this->_pos = 0;
@@ -143,7 +143,7 @@ class FileReader {
// over it (it assumes knowledge of StringReader internals)
class CachedFileReader extends StringReader {
function CachedFileReader($filename) {
if (file_exists($filename)) {
if (is_file($filename)) {
$length=filesize($filename);
$fd = fopen($filename,'rb');