Thread:Extension talk:Push/File Push Hanging/reply (2)

To update Push to the changes that php and mediawiki made so far change the following:

In file ApiPushImages.php in the Push extension folder on line 289 change

$req = new CurlHttpRequest( $target, $reqArgs );

to

$req = MWHttpRequest::factory( $target, $reqArgs );

And on line 268

'''$requestData['file'] = '@'. $imagePage->getFile->getPath;'''

to

$requestData['file'] = new CurlFile($imagePage->getFile->getPath, 'image/jpg');

That's all I got so far. Now I get a couldn't open file "mwstore://local-backend/local-public/2/2f/Mold_and_sterile.jpg" error and chowning and chmodding the images folder doesn't help. Maybe it's a curl problem. But whatever.