convert "::1" and other pseudo-IPv6 addresses that Apache may throw at us to their...
[lhc/web/wiklou.git] / includes / HistoryBlob.php
index daa444c..357c1d4 100644 (file)
@@ -52,18 +52,14 @@ class HistoryBlob
  * The real object
  * @package MediaWiki
  */
-class ConcatenatedGzipHistoryBlob extends HistoryBlob {
-       private
-               $mCompressed = false,
-               $mDefaultHash = '',
-               $mFast = 0,
-               $mItems = array(),
-               $mSize = 0,
-               $mVersion = 0 ;
+class ConcatenatedGzipHistoryBlob extends HistoryBlob
+{
+       /* private */ var $mVersion = 0, $mCompressed = false, $mItems = array(), $mDefaultHash = '';
+       /* private */ var $mFast = 0, $mSize = 0;
 
        function ConcatenatedGzipHistoryBlob() {
                if ( !function_exists( 'gzdeflate' ) ) {
-                       wfDie( "Need zlib support to read or write this kind of history object (ConcatenatedGzipHistoryBlob)\n" );
+                       throw new MWException( "Need zlib support to read or write this kind of history object (ConcatenatedGzipHistoryBlob)\n" );
                }
        }
 
@@ -186,10 +182,7 @@ $wgBlobCache = array();
  * @package MediaWiki
  */
 class HistoryBlobStub {
-       private
-               $mHash,
-               $mOldId,
-               $mRef;
+       var $mOldId, $mHash, $mRef;
 
        /** @todo document */
        function HistoryBlobStub( $hash = '', $oldid = 0 ) {
@@ -238,7 +231,6 @@ class HistoryBlobStub {
                                        wfProfileOut( $fname );
                                        return false;
                                }
-                               require_once('ExternalStore.php');
                                $row->old_text=ExternalStore::fetchFromUrl($url);
 
                        }
@@ -285,8 +277,7 @@ class HistoryBlobStub {
  * @package MediaWiki
  */
 class HistoryBlobCurStub {
-       private
-               $mCurId;
+       var $mCurId;
 
        /** @todo document */
        function HistoryBlobCurStub( $curid = 0 ) {