Changeset 1152

Show
Ignore:
Timestamp:
09/25/08 19:38:32 (2 months ago)
Author:
bermiferrer
Message:

Making it possible to for plugin installation method by defining the constant AK_BEST_PLUGIN_INSTALL_METHOD

As: local directory, checkout, export, or http

http should work on any svn repository served by apache.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/AkPlugin/AkPluginManager.php

    r907 r1152  
    215215    function guessBestInstallMethod($options = array()) 
    216216    { 
     217        if(defined('AK_BEST_PLUGIN_INSTALL_METHOD') && in_array(AK_BEST_PLUGIN_INSTALL_METHOD, 
     218        array('local directory', 'checkout', 'export', 'http'))){ 
     219            return AK_BEST_PLUGIN_INSTALL_METHOD; 
     220        } 
    217221        if(!empty($options['parameters']) && is_dir($options['parameters'])){ 
    218222            return 'local directory';