Minor - format code, comment unused code.

1.10.x
Julio Montoya 11 years ago
parent c60f690d70
commit 056b709400
  1. 3
      main/inc/lib/api.lib.php
  2. 2
      main/install/install_files.inc.php
  3. 4
      tests/main/install/install_upgrade.lib.test.php

@ -943,7 +943,8 @@ function api_get_path($path_type, $path = null)
* @return string The path of the resource converted to CDN
* @author Yannick Warnier <ywarnier@beeznst.org>
*/
function api_get_cdn_path($web_path) {
function api_get_cdn_path($web_path)
{
global $_configuration;
$web_root = api_get_path(WEB_PATH);
$ext = substr($web_path,strrpos($web_path,'.'));

@ -23,7 +23,7 @@ if (defined('SYSTEM_INSTALLATION')) {
//write_system_config_file(api_get_path(CONFIGURATION_PATH) . 'configuration.dist.php');
// Write a .htaccess file in the course repository
write_courses_htaccess_file($urlAppendPath);
//write_courses_htaccess_file($urlAppendPath);
// Copy distribution files with renaming for being the actual system configuration files.
copy(

@ -15,7 +15,7 @@ class TestInstallUpgrade extends UnitTestCase{
//var_dump($res);
}
public function testWriteCoursesHtaccessFile() {
/*public function testWriteCoursesHtaccessFile() {
$chamilo_path_folder = api_get_path(SYS_PATH);
$url_append=$chamilo_path_folder.'main/install/';
$res = write_courses_htaccess_file($url_append);
@ -25,7 +25,7 @@ class TestInstallUpgrade extends UnitTestCase{
}else
$this->assertEqual($chamilo_path_folder.'main/install/',$res);
//var_dump($res);
}
}*/
public function testSplitSqlFile() {
$ret='';

Loading…
Cancel
Save