-
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.
configurable upload info, fix wysiwyg, some minor bugfixes and changes
- Loading branch information
Showing
11 changed files
with
151 additions
and
115 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,25 @@ | ||
<?php | ||
class UploadLegalInfoUpdateLink extends Migration | ||
{ | ||
|
||
function up() | ||
{ | ||
$db = DBManager::get(); | ||
|
||
$stmt = $db->prepare("UPDATE config | ||
SET `value` = :value, type = 'string' | ||
WHERE field = 'OPENCAST_UPLOAD_INFO_TEXT_BODY' | ||
"); | ||
|
||
$stmt->execute([ | ||
':value' => '{"de_DE":"<p>Laden Sie nur Medien hoch, an denen Sie das Nutzungsrecht besitzen!</p><ul><li>Nach §60 UrhG dürfen nur maximal 5-minütige Sequenzen aus urheberrechtlich geschützten Filmen oder Musikaufnahmen bereitgestellt werden, sofern diese einen geringen Umfang des Gesamtwerkes ausmachen.</li><li><a href=\"https://www.uni-bremen.de/urheberrecht/leitfragen/5-rechtssichere-kopien-fuer-andere/antwort-kopien-fuer-lehrende-und-pruefer\">§60 UrhG Zusammenfassung auf den Seiten der Universität Bremen</a></li><li>Medien, bei denen Urheberrechtsverstöße vorliegen, werden ohne vorherige Ankündigung umgehend gelöscht.</li></ul>","en_GB":"<p>Upload</p>"}' | ||
]); | ||
|
||
$db->exec("DELETE FROM config WHERE field = 'OPENCAST_UPLOAD_INFO_TEXT_HEADING'"); | ||
$db->exec("DELETE FROM config_values WHERE field = 'OPENCAST_UPLOAD_INFO_TEXT_HEADING'"); | ||
} | ||
|
||
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
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
Oops, something went wrong.