-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #1967, include link sharing in public making option
- Loading branch information
Showing
4 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
class UpdateSharingOption extends Migration | ||
{ | ||
public function description() | ||
{ | ||
return 'Rename option to include link sharing as well'; | ||
} | ||
|
||
public function up() | ||
{ | ||
$db = DBManager::get(); | ||
|
||
// Add global config to edit clear interval of videos in recycle bin | ||
$stmt = $db->prepare('REPLACE INTO config (field, value, section, type, `range`, mkdate, chdate, description) | ||
VALUES (:name, :value, :section, :type, :range, UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), :description)'); | ||
|
||
$stmt->execute([ | ||
'name' => 'OPENCAST_ALLOW_PUBLIC_SHARING', | ||
'section' => 'opencast', | ||
'description' => 'Sollen Nutzende Videos teilen oder weltweit öffentlich freigeben können?', | ||
'range' => 'global', | ||
'type' => 'boolean', | ||
'value' => true | ||
]); | ||
} | ||
|
||
public function down() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters