/[drupal]/contributions/modules/plugin_manager/ftp.backend.inc
ViewVC logotype

Diff of /contributions/modules/plugin_manager/ftp.backend.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3.2.10, Sun Sep 28 15:03:48 2008 UTC revision 1.3.2.11, Wed Oct 1 00:54:51 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: ftp.backend.inc,v 1.3.2.9 2008/09/28 02:56:58 jabapyth Exp $  // $Id: ftp.backend.inc,v 1.3.2.10 2008/09/28 15:03:48 joshuarogers Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 81  function ftp_plugin_manager_copy($files, Line 81  function ftp_plugin_manager_copy($files,
81  function ftp_plugin_manager_copy_library($files, $type, $host, $username, $password) {  function ftp_plugin_manager_copy_library($files, $type, $host, $username, $password) {
82    // Figure out the type of files.    // Figure out the type of files.
83    if (!in_array($type, array('modules', 'themes'))) {    if (!in_array($type, array('modules', 'themes'))) {
84        drupal_set_message("invalid plugin type $type",'error');
85      return FALSE;      return FALSE;
86    }    }
87    $dir = 'sites/all/'. drupal_strtolower($type);    $dir = 'sites/all/'. drupal_strtolower($type);
# Line 167  function ftp_plugin_manager_copy_library Line 168  function ftp_plugin_manager_copy_library
168  function ftp_plugin_manager_copy_wrapper($files, $type, $host, $username, $password) {  function ftp_plugin_manager_copy_wrapper($files, $type, $host, $username, $password) {
169    // Figure out the type of files.    // Figure out the type of files.
170    if (!in_array($type, array('modules', 'themes'))) {    if (!in_array($type, array('modules', 'themes'))) {
171        drupal_set_message("invalid plugin type $type",'error');
172      return FALSE;      return FALSE;
173    }    }
174    $dir = 'sites/all/'. drupal_strtolower($type);    $dir = 'sites/all/'. drupal_strtolower($type);

Legend:
Removed from v.1.3.2.10  
changed lines
  Added in v.1.3.2.11

  ViewVC Help
Powered by ViewVC 1.1.2