Owned67 / stikked

Automatically exported from code.google.com/p/stikked
0 stars 0 forks source link

Download function fails. #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. clicking the download button in a paste.

What is the expected output? What do you see instead?
A message to download a file called "paste.txt" or something.

What version of the product are you using? On what operating system?
0.56, one available as of 9-11-11.

Please provide any additional information below.

I've found a fix for it...
in system>application>views>download.php

delete everything and replace with this: 

<?php
ob_start();
?>
<pre>
<?=$raw?>
</pre>
<?php
$var = ob_get_clean();
echo $var;
?>
<script language="JavaScript">
alert("To download, go to \"File > Save As\" and save as type: \"Text 
Document.\"");
</script>

That should fix it.

Original issue reported on code.google.com by supp...@u4ik.us on 12 Sep 2011 at 1:36