Skip to content

Commit 762348d

Browse files
author
danh
committed
Changed preview.php back to use download.php for the resource until issue discussed with Casper
(the change this reverts broke the preview page on all the installs I tried) git-svn-id: http://svn.resourcespace.org/svn/resourcespace@483 c08608d7-6e46-0410-86ca-f2a6f1370df5
1 parent f0ef65f commit 762348d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

license.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Please see the "licenses" folder for all applicable licenses.
1+
Please see the "documentation/licenses" folder for all applicable licenses.

pages/preview.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<tr>
7474
<td valign="middle"><? if ($previouspage!=-1) { ?><a href="preview.php?ref=<?=$ref?>&ext=<?=$ext?>&k=<?=$k?>&search=<?=urlencode($search)?>&offset=<?=$offset?>&order_by=<?=$order_by?>&archive=<?=$archive?>&page=<?=$previouspage?>" class="PDFnav">&lt;</a><? }
7575
elseif ($nextpage!=-1) { ?><a href="#" class="PDFnav">&nbsp;&nbsp;&nbsp;</a><? } ?></td>
76-
<td><a href="<?=((getval("from","")=="search")?"search.php?":"view.php?ref=" . $ref . "&")?>search=<?=urlencode($search)?>&offset=<?=$offset?>&order_by=<?=$order_by?>&archive=<?=$archive?>&k=<?=$k?>"><img src="<?=get_resource_path($ref,false,"scr",false,$ext,-1,$page,checkperm("w"))?>" alt="" <? if ($border) { ?>style="border:1px solid white;"<? } ?> /></a></td>
76+
<td><a href="<?=((getval("from","")=="search")?"search.php?":"view.php?ref=" . $ref . "&")?>search=<?=urlencode($search)?>&offset=<?=$offset?>&order_by=<?=$order_by?>&archive=<?=$archive?>&k=<?=$k?>"><img src="download.php?ref=<?=$ref?>&size=scr&ext=<?=$ext?>&noattach=true&k=<?=$k?>&page=<?=$page?>" alt="" <? if ($border) { ?>style="border:1px solid white;"<? } ?> /></a></td>
7777
<td valign="middle"><? if ($nextpage!=-1) { ?><a href="preview.php?ref=<?=$ref?>&ext=<?=$ext?>&k=<?=$k?>&search=<?=urlencode($search)?>&offset=<?=$offset?>&order_by=<?=$order_by?>&archive=<?=$archive?>&page=<?=$nextpage?>" class="PDFnav">&gt;</a><? } ?></td>
7878
</tr></table>
7979
<? } ?>

0 commit comments

Comments
 (0)