Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv10070
Modified Files:
ziplib.php
Log Message:
Reindenting and rewrapping in emacs.
Index: ziplib.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/ziplib.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** ziplib.php 2002/01/09 04:01:09 1.15
--- ziplib.php 2002/01/09 16:14:49 1.16
***************
*** 5,72 ****
* GZIP stuff.
*
! * Note that we use gzopen()/gzwrite() instead of gzcompress() even
! * if gzcompress() is available. Gzcompress() puts out data with different
! * headers --- in particular it includes an "adler-32" checksum rather than
! * a "CRC32" checksum. Since we need the CRC-32 checksum, and since not
! * all PHP's have gzcompress(), we'll just stick with gzopen().
*/
function gzip_cleanup () {
! global $gzip_tmpfile;
[...1286 lines suppressed...]
$data .= GenerateFootnotesFromRefs($params);
!
$page['content'] = preg_replace('/[ \t\r]*\n/', "\n", chop($data));
$page['pagedata'] = $pagedata;
$page['versiondata'] = $versiondata;
!
return array($page);
}
--- 720,730 ----
else if ($encoding && $encoding != 'binary')
ExitWiki( sprintf(_("Unknown %s"), 'encoding type: $encoding') );
!
$data .= GenerateFootnotesFromRefs($params);
!
$page['content'] = preg_replace('/[ \t\r]*\n/', "\n", chop($data));
$page['pagedata'] = $pagedata;
$page['versiondata'] = $versiondata;
!
return array($page);
}
|