Browse Source

Moving files into main/inc/lib

Julio Montoya 12 years ago
parent
commit
90b459de35

+ 2 - 2
main/inc/global.inc.php

@@ -604,12 +604,12 @@ if ($alreadyInstalled) {
 //Adding web profiler
 if (is_writable($app['cache.path'])) {
     //if ($app['debug']) {
-    if (api_get_setting('allow_web_profiler') == 'true') {
+    //if (api_get_setting('allow_web_profiler') == 'true') {
         $app->register($p = new Silex\Provider\WebProfilerServiceProvider(), array(
                 'profiler.cache_dir' => $app['profiler.cache_dir'],
             ));
         $app->mount('/_profiler', $p);
-    }
+    //}
     //}
 }
 

+ 0 - 0
main/inc/email_editor.php → main/inc/lib/email_editor.inc.php


+ 0 - 0
main/inc/course_document.inc.php → main/inc/lib/fck_course_document.inc.php


+ 2 - 2
main/inc/lib/fckeditor/editor/plugins/MP3/fck_mp3.php

@@ -46,8 +46,8 @@ include('../../../../../../inc/global.inc.php');
 		      <tr>
 		        <td>
 		  <?php
-		  $sType = "MP3";
-            include(api_get_path(INCLUDE_PATH).'course_document.inc.php');
+		    $sType = "MP3";
+            include api_get_path(LIBRARY_PATH).'fck_course_document.inc.php';
 
 		  ?>
 		        </td>

+ 0 - 0
main/inc/latex.php → main/inc/lib/latex.inc.php


+ 1 - 1
main/inc/lib/text.lib.php

@@ -493,7 +493,7 @@ function latex_gif_renderer($latex_code) {
         //echo 'volgende shell commando werd uitgevoerd:<br /><pre>'.$mimetex_command.'</pre><hr>';
     }
 
-    $return = "<a href=\"\" onclick=\"javascript: newWindow=window.open('" . api_get_path(WEB_CODE_PATH) . "inc/latex.php?code=" . urlencode($latex_code) . "&amp;filename=$latex_filename','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=250,left=200,top=100');\">";
+    $return = "<a href=\"\" onclick=\"javascript: newWindow=window.open('" . api_get_path(WEB_CODE_PATH) . "inc/lib/latex.inc.php?code=" . urlencode($latex_code) . "&amp;filename=$latex_filename','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=250,left=200,top=100');\">";
     $return .= '<img src="' . api_get_path(WEB_COURSE_PATH) . $_course['path'] . '/temp/' . $latex_filename . '" alt="' . $latex_code . '" border="0" /></a>';
     return $return;
 }

+ 2 - 2
main/template/default/mail_editor/email_link.js.tpl

@@ -32,7 +32,7 @@ function addEvent(elm, evType, fn, useCapture) {
  * Adds the event listener
  */
 function addListeners(e) {
-	var my_links = $('.clickable_email_link');    
+	var my_links = $('.clickable_email_link');
 	for(var i=0;i < my_links.length;i++) {
 		addEvent(my_links[i],'click',loadEmailEditor,false);
 	}
@@ -54,7 +54,7 @@ function loadEmailEditor(e) {
 	}
 	//el is now my link object, so I can get el.href here to load the new window
 	var link = el.href.replace('mailto:','');
-	document.location = "{{ _p.web_main }}inc/email_editor.php?dest=" + link;
+	document.location = "{{ _p.web_main }}inc/lib/email_editor.php?dest=" + link;
 	//cancel default link action
 	if (window.event && window.event.returnValue){
 		window.event.returnValue = false;