Ignore:
Timestamp:
Jul 27, 2012, 4:44:19 PM (12 years ago)
Author:
mistic100
Message:

rewrite all urls to be compatible with "question_mark_in_urls"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/BatchDownloader.class.php

    r16697 r17177  
    425425    }
    426426   
     427    $root_url = get_root_url();
     428   
    427429    $out = '';
    428430    for ($i=1; $i<=$this->data['nb_zip']; $i++)
     
    432434      if ($this->data['status'] == 'done' or $i < $this->data['last_zip']+1)
    433435      {
    434         $out.= '<img src="'.BATCH_DOWNLOAD_PATH.'template/drive.png"> Archive #'.$i.' (already downloaded)';
     436        $out.= '<img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/drive.png"> Archive #'.$i.' (already downloaded)';
    435437      }
    436438      else if ($i == $this->data['last_zip']+1)
     
    438440          $out.= '<a href="'.add_url_params($url, array('set_id'=>$this->data['id'],'zip'=>$i)).'" rel="nofollow" style="font-weight:bold;"'
    439441            .($i!=1 ? 'onClick="return confirm(\'Starting download Archive #'.$i.' will destroy Archive #'.($i-1).', be sure you finish the download. Continue ?\');"' : null).
    440             '><img src="'.BATCH_DOWNLOAD_PATH.'template/drive_go.png"> Archive #'.$i.' (ready)</a>';
     442            '><img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/drive_go.png"> Archive #'.$i.' (ready)</a>';
    441443      }
    442444      else
    443445      {
    444         $out.= '<img src="'.BATCH_DOWNLOAD_PATH.'template/drive.png"> Archive #'.$i.' (pending)';
     446        $out.= '<img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/drive.png"> Archive #'.$i.' (pending)';
    445447      }
    446448     
     
    609611          if (!class_exists('UserCollection')) throw new Exception();
    610612          $UserCollection = new UserCollection($this->data['type_id']);
    611           $set['NAME'] = l10n('Collection').': <a href="'.USER_COLLEC_PUBLIC.'view/'.$UserCollection->getParam('id').'">'.$UserCollection->getParam('name').'</a>';
     613          $infos = $UserCollection->getCollectionInfo();
     614          $set['NAME'] = l10n('Collection').': <a href="'.$infos['U_PUBLIC'].'">'.$UserCollection->getParam('name').'</a>';
    612615        }
    613616        catch (Exception $e)
Note: See TracChangeset for help on using the changeset viewer.