Make HistoryStub ExternalStore-aware. Renamed external table, so that it can be insid...
[lhc/web/wiklou.git] / includes / HistoryBlob.php
index a210f7c..f7fa77a 100644 (file)
@@ -209,6 +209,17 @@ class HistoryBlobStub {
                                return false;
                        }
                        $flags = explode( ',', $row->old_flags );
+                       if( in_array( 'external', $flags ) ) {
+                               $url=$row->old_text;
+                               @list($proto,$path)=explode('://',$url,2);
+                               if ($path=="") {
+                                       wfProfileOut( $fname );
+                                       return false;
+                               }
+                               require_once('ExternalStore.php');
+                               $row->old_text=ExternalStore::fetchFromUrl($url);
+
+                       }
                        if( !in_array( 'object', $flags ) ) {
                                return false;
                        }