|
|
|
When we click on the following powerpoint file resouce, a blank page will be displayed.
1. Resource type: ppt (Powerpoint file)
2. Window: new window
To prevent this blank page, we can modify mod/resource/type/file/resource.class.php as below.
Index: resource.class.php
===================================================================
RCS file: /cvsroot/moodle/moodle/mod/resource/type/file/resource.class.php,v
retrieving revision 1.68
diff -u -r1.68 resource.class.php
--- resource.class.php 19 Jul 2007 05:51:33 -0000 1.68
+++ resource.class.php 19 Jul 2007 22:51:38 -0000
@@ -605,6 +605,9 @@
echo '</div>';
echo "<div class=\"popupnotice\">(<a href=\"$fullurl\">$fullurl</a>)</div>";
}
+ if ($mimetype == "application/vnd.ms-powerpoint") {
+ $fullurl = $fullurl . "?forcedownload=1";
+ }
redirect($fullurl);
}
|
|
Description
|
When we click on the following powerpoint file resouce, a blank page will be displayed.
1. Resource type: ppt (Powerpoint file)
2. Window: new window
To prevent this blank page, we can modify mod/resource/type/file/resource.class.php as below.
Index: resource.class.php
===================================================================
RCS file: /cvsroot/moodle/moodle/mod/resource/type/file/resource.class.php,v
retrieving revision 1.68
diff -u -r1.68 resource.class.php
--- resource.class.php 19 Jul 2007 05:51:33 -0000 1.68
+++ resource.class.php 19 Jul 2007 22:51:38 -0000
@@ -605,6 +605,9 @@
echo '</div>';
echo "<div class=\"popupnotice\">(<a href=\"$fullurl\">$fullurl</a>)</div>";
}
+ if ($mimetype == "application/vnd.ms-powerpoint") {
+ $fullurl = $fullurl . "?forcedownload=1";
+ }
redirect($fullurl);
}
|
Show » |
made changes - 18/Dec/07 04:17 AM
| Field |
Original Value |
New Value |
|
Assignee
|
Petr Skoda
[ skodak
]
|
Nicolas Connault
[ nicolasconnault
]
|
made changes - 25/Jan/08 05:05 AM
|
Assignee
|
Nicolas Connault
[ nicolasconnault
]
|
Petr Skoda
[ skodak
]
|
made changes - 05/Feb/08 03:08 AM
|
Link
|
|
This issue has a non-specific relationship to MDL-12308
[ MDL-12308
]
|
made changes - 05/Feb/08 05:04 AM
|
Resolution
|
|
Not a bug
[ 7
]
|
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
made changes - 20/Feb/08 01:24 AM
|
Link
|
|
This issue is duplicated by MDL-13535
[ MDL-13535
]
|
made changes - 26/Feb/08 08:46 AM
made changes - 27/Feb/08 08:39 AM
|