WordPress.org

Plugin Directory

Changeset 1509009


Ignore:
Timestamp:
10/05/16 22:19:28 (13 months ago)
Author:
joobi
Message:

check for existing folder installed

Location:
jdefender/tags/2.20.11
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jdefender/tags/2.20.11/admin/joobi/node/install/addon/wp4/install.php

    r1508872 r1509009  
    364364            if(empty($destinationPath)) throw new Exception("destinationPath is empty"); 
    365365            try { 
     366                //check if already extracted 
     367                if ( ! file_exists( $this->_joobiTarGzSourcePath ) ) { 
     368                    rename( dirname( __FILE__ ) . '/admin/joobi', $destinationPath ); 
     369                    $this->_joobiInfoLog( "no untar, moved joobi folder" ); 
     370                    return true; 
     371                }//endif 
     372                 
    366373                if( PHP_VERSION > '5.3' && class_exists( 'PharData' ) ) { 
    367374                    try{ 
  • jdefender/tags/2.20.11/install.php

    r1508872 r1509009  
    707707 
    708708            try { 
    709  
     709                //check if already extracted 
     710                if ( ! file_exists( $this->_joobiTarGzSourcePath ) ) { 
     711                    rename( dirname( __FILE__ ) . '/admin/joobi', $destinationPath ); 
     712                    $this->_joobiInfoLog( "no untar, moved joobi folder" ); 
     713                    return true; 
     714                }//endif 
     715                 
    710716                if( PHP_VERSION > '5.3' && class_exists( 'PharData' ) ) { 
    711717 
Note: See TracChangeset for help on using the changeset viewer.