Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
d337ebf8
Commit
d337ebf8
authored
Mar 14, 2019
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 14, 2019
Browse files
Merge "Bug 1778792: PDF.js does not have the presentation mode option in Firefox and IE"
parents
342d97db
97ad9af7
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/artefact/file/blocktype/pdf/lib.php
View file @
d337ebf8
...
...
@@ -73,7 +73,7 @@ class PluginBlocktypePdf extends MaharaCoreBlocktype {
else
if
(
$language
==
'en'
)
{
$language
=
'en-GB'
;
}
$result
=
'<iframe src="'
.
$urlbase
.
'artefact/file/blocktype/pdf/viewer.php?editing='
.
$editing
.
'&ingroup='
.
!
empty
(
$group
)
.
'&file='
.
$artefactid
.
'&lang='
.
$language
.
'&view='
.
$instance
->
get
(
'view'
)
$result
=
'<iframe
allowfullscreen
src="'
.
$urlbase
.
'artefact/file/blocktype/pdf/viewer.php?editing='
.
$editing
.
'&ingroup='
.
!
empty
(
$group
)
.
'&file='
.
$artefactid
.
'&lang='
.
$language
.
'&view='
.
$instance
->
get
(
'view'
)
.
(
$versioning
?
'&versioning=true'
:
''
)
.
'" class="pdfiframe"></iframe>'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment