Pārlūkot izejas kodu

fix: youtube module was broken

master
Dominik Schmidt-Philipp pirms 1 dienas
vecāks
revīzija
43d4779a9e
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. +3
    -2
      app/modules/elementdispatcher.php

+ 3
- 2
app/modules/elementdispatcher.php Parādīt failu

@@ -512,10 +512,11 @@ class ElementDispatcher {
break;
case 'youtube':
array_shift($request);
$vid=array_shift($request);
$pos= array_shift($request);
if( in_array($pos,array('left','right','full'))) {
if( in_array($pos,array('left','right','full','center','auto'))) {
$class = $pos;
} else {
$class = 'left';
@@ -543,7 +544,7 @@ class ElementDispatcher {
$body[$k] = sprintf("<span class=\"copyright\">%s</span>",$line);
}
}
$new=sprintf("<div class='video-container %s'>"
$new=sprintf("<div class='video-container content_element_youtube %s'>"
."<div class=\"media\">%s</div>"
."<div class=\"caption\">%s</div>"
."</div>",

Notiek ielāde…
Atcelt
Saglabāt