phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: sitemgr/modules class.module_download.inc.php,1


From: Michael Totschnig <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/modules class.module_download.inc.php,1.1.2.2,1.1.2.3
Date: Fri, 16 May 2003 23:37:19 -0400

Update of /cvsroot/phpgroupware/sitemgr/modules
In directory subversions:/tmp/cvs-serv21798/modules

Modified Files:
      Tag: Version-0_9_16-branch
        class.module_download.inc.php 
Log Message:
the download module should also give access to the raw URL without wrapping an 
A around it.


Index: class.module_download.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/modules/class.module_download.inc.php,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -r1.1.2.2 -r1.1.2.3
*** class.module_download.inc.php       3 May 2003 21:10:40 -0000       1.1.2.2
--- class.module_download.inc.php       17 May 2003 03:37:17 -0000      1.1.2.3
***************
*** 16,20 ****
                        'text' => array(
                                'type' => 'textfield',
!                               'label' => lang('The text for the link, if 
empty the filename is used')
                        ),
                        'op' => array(
--- 16,20 ----
                        'text' => array(
                                'type' => 'textfield',
!                               'label' => lang('The text for the link, if 
empty the module returns the raw URL (without the HTML A element)')
                        ),
                        'op' => array(
***************
*** 43,51 ****
                        $linkdata['file'] = 
rawurlencode(base64_encode($arguments['file']));
                }
!               return '<a href="' . 
!                       phpgw_link('/phpwebhosting/index.php',$linkdata) . 
!                       '">' .
!                       ($arguments['text'] ? $arguments['text'] : 
$arguments['file']) .
!                       '</a>';
        }
  }
--- 43,49 ----
                        $linkdata['file'] = 
rawurlencode(base64_encode($arguments['file']));
                }
!               return $arguments['text'] ? 
!                       ('<a href="' . 
phpgw_link('/phpwebhosting/index.php',$linkdata) . '">' . $arguments['text'] . 
'</a>') :
!                       phpgw_link('/phpwebhosting/index.php',$linkdata);
        }
  }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]