Browse Source

Minor - removed unused variables

Julio Montoya 6 years ago
parent
commit
b1974ee3b4
1 changed files with 0 additions and 4 deletions
  1. 0 4
      main/lp/readout_text.php

+ 0 - 4
main/lp/readout_text.php

@@ -30,7 +30,6 @@ $documentRepo = $em->getRepository('ChamiloCourseBundle:CDocument');
 // This page can only be shown from inside a learning path
 if (!$id && !$lpId) {
     api_not_allowed(true);
-    exit;
 }
 
 /** @var CDocument $document */
@@ -48,9 +47,6 @@ if (empty($document)) {
 }
 
 $documentPathInfo = pathinfo($document->getPath());
-$jplayer_supported_files = ['mp4', 'ogv', 'flv', 'm4v'];
-$extension = isset($documentPathInfo['extension']) ? $documentPathInfo['extension'] : '';
-
 $coursePath = api_get_path(SYS_COURSE_PATH).$courseInfo['directory'];
 $documentPath = '/document'.$document->getPath();
 $documentText = file_get_contents($coursePath.$documentPath);