Project

General

Profile

Feature #5138

Replace the harcoded path in courses/XXX/index.php

Added by Julio Montoya over 7 years ago. Updated almost 3 years ago.

Status:
Feature implemented
Priority:
Normal
Assignee:
-
Category:
Documents
Target version:
Start date:
04/07/2012
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

The index.php has something like that:

<?php
    $cidReq = "PHYPA2";
    $dbname = "PHYPA2";

    include("/var/www/formascience/main/course_home/course_home.php");
?>

we should replace that using the api_get_path, or using the htaccess file


Related issues

Related to Chamilo LMS - Bug #5309: changing install path not possibleNew15/08/2012

Actions

History

#1

Updated by Julio Montoya over 7 years ago

Check function prepare_course_repository()

#2

Updated by Yannick Warnier about 7 years ago

Why not simply use (for now) include dirname(FILE).'/../../main/course_home/course_home.php'; ?

#3

Updated by Yannick Warnier almost 3 years ago

  • Category set to Documents
  • Status changed from New to Feature implemented
  • Target version changed from 2.0 to 1.11.4
  • % Done changed from 0 to 100

index.php has been removed in 1.11.0 (in favor of a .htaccess redirect)

Also available in: Atom PDF