Merge pull request #700 from ruleant/offset

offset is a global var
This commit is contained in:
Michal Čihař 2013-09-17 06:47:23 -07:00
commit a3e11b4d33

View File

@ -111,7 +111,7 @@ class ImportMediawiki extends ImportPlugin
if ($data === false) {
// Subtract data we didn't handle yet and stop processing
$offset -= strlen($buffer);
$GLOBALS['offset'] -= strlen($buffer);
break;
} elseif ($data === true) {
// Handle rest of buffer