Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add ZipArchive Check #3

Open
wants to merge 2 commits into from

1 participant

@BandonRandon

Check for zipArchive before continuing.

BandonRandon added some commits
@BandonRandon BandonRandon Update upgrade.php
Check for `zipArchive` before continuing.
50a0788
@BandonRandon BandonRandon Update upgrade.php
Zipball download url changed (again)
281f679
@BandonRandon

Looks like they changed the zipball download url so instead of being able to download the zipball we were getting a "you are being redirected" message which isn't helpful.

Updating the zipball url fixed #2

Aside, do you think it would be helpful to add an option to the dev branch in the plugin?

@BandonRandon BandonRandon referenced this pull request
Closed

Upgrade Failed notice #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 11, 2013
  1. @BandonRandon

    Update upgrade.php

    BandonRandon authored
    Check for `zipArchive` before continuing.
  2. @BandonRandon

    Update upgrade.php

    BandonRandon authored
    Zipball download url changed (again)
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 upgrade.php
View
6 upgrade.php
@@ -8,8 +8,10 @@
die($root.' must be writable by '.get_current_user());
if(!is_writable($tmp))
die($tmp.' must be writable by '.get_current_user());
+if(!class_exists('ZipArchive'))
+ die('The ZipArchive Class must be inststalled to use this plugin.');
$zip=$tmp.'zip';
-file_put_contents($zip,file_get_contents('https://github.com/twilio/OpenVBX/zipball/master'));
+file_put_contents($zip,file_get_contents('https://nodeload.github.com/twilio/OpenVBX/zip/master'));
$z=new ZipArchive;
if(true===$z->open($zip)){
$z->extractTo($tmp);
@@ -51,4 +53,4 @@ function rmall($dir){
}
if(is_dir($dir))
@rmdir($dir);
-}
+}
Something went wrong with that request. Please try again.