Projet

Général

Profil

Révision 05237dd8

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/imce/js/imce.js
801 801
  if (furl.charAt(furl.length - 1) != '/') {
802 802
    furl = imce.conf.furl = furl + '/';
803 803
  }
804
  imce.conf.modfix = imce.conf.clean && furl.indexOf(host + '/system/') > -1;
804
  imce.conf.modfix = imce.conf.clean && furl.split('/')[3] === 'system';
805 805
  if (absurls && !isabs) {
806 806
    imce.conf.furl = baseurl + furl;
807 807
  }
808 808
  else if (!absurls && isabs && furl.indexOf(baseurl) == 0) {
809
    imce.conf.furl = furl.substr(baseurl.length);
809
    furl = furl.substr(baseurl.length);
810
    // Server base url is defined with a port which is missing in current page url.
811
    if (furl.charAt(0) === ':') {
812
      furl = furl.replace(/^:\d*/, '');
813
    }
814
    imce.conf.furl = furl;
810 815
  }
811 816
  //convert button elements to input elements.
812 817
  imce.convertButtons(imce.FW);

Formats disponibles : Unified diff