Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Moodle Filter Opencast
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
Moodle Filter Opencast
Commits
c58af724
Commit
c58af724
authored
7 years ago
by
TamaraGunkel
Browse files
Options
Downloads
Patches
Plain Diff
Fixes rendering of login form
parent
7ec83d5b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lang/en/filter_opencast.php
+1
-1
1 addition, 1 deletion
lang/en/filter_opencast.php
lib.php
+4
-4
4 additions, 4 deletions
lib.php
with
5 additions
and
5 deletions
lang/en/filter_opencast.php
+
1
−
1
View file @
c58af724
...
...
@@ -29,5 +29,5 @@ $string['setting_consumerkey'] = 'Consumer key';
$string
[
'setting_consumerkey_desc'
]
=
'LTI Consumer key'
;
$string
[
'setting_consumersecret'
]
=
'Consumer secret'
;
$string
[
'setting_consumersecret_desc'
]
=
'LTI Consumer secret'
;
$string
[
'setting_engageurl'
]
=
'URL of the Opencast Enga
n
ge server'
;
$string
[
'setting_engageurl'
]
=
'URL of the Opencast Engage server'
;
$string
[
'setting_engageurl_desc'
]
=
'If empty, the base URL of the admin tool is used.'
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib.php
+
4
−
4
View file @
c58af724
...
...
@@ -32,8 +32,8 @@ require_once($CFG->dirroot . '/lib/oauthlib.php');
function
filter_opencast_login
()
{
global
$PAGE
;
// Get
api
url of opencast
.
$endpoint
=
get_config
(
'
tool
_opencast'
,
'
api
url'
);
// Get url of opencast
engage server
$endpoint
=
get_config
(
'
filter
_opencast'
,
'
engage
url'
);
if
(
strpos
(
$endpoint
,
'http'
)
!==
0
)
{
$endpoint
=
'http://'
.
$endpoint
;
}
...
...
@@ -44,13 +44,13 @@ function filter_opencast_login() {
// Render form.
$renderer
=
$PAGE
->
get_renderer
(
'filter_opencast'
);
echo
$renderer
->
render_
player
(
$endpoint
,
$params
);
echo
$renderer
->
render_
lti_form
(
$endpoint
,
$params
);
// Submit form.
$PAGE
->
requires
->
js_call_amd
(
'filter_opencast/form'
,
'init'
);
}
function
filter_opencast_create_parameters
()
{
function
filter_opencast_create_parameters
(
$endpoint
)
{
global
$CFG
,
$COURSE
,
$USER
;
// Get consumerkey and consumersecret.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment