Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Fixes Google Docs Viewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Oct 11, 2011
1 parent d953c77 commit fd038cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripto.module
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ function scripto_transcribe_form($form, &$form_state, $node_id, $file_id) {

// Google Docs document viewer.
} else if (in_array($file->filemime, _scripto_get_filemime_googledocs())) {
$url = url('http://docs.google.com/viewer', array('query' => array('url' => file_create_url($file->uri), 'embed' => 'true')));
$html = '<iframe src="http://docs.google.com/viewer?embedded=true&url=' . urlencode($url) . '" width="500" height="600" style="border: none;"></iframe>';
$url = url('http://docs.google.com/viewer', array('query' => array('url' => file_create_url($file->uri), 'embedded' => 'true')));
$html = '<iframe src="' . $url . '" width="600" height="600" style="border: none;"></iframe>';

// No media viewer.
} else {
Expand Down

0 comments on commit fd038cd

Please sign in to comment.