Minor - adding comments.

skala
Julio Montoya 12 years ago
parent 8777c5542b
commit c993416949
  1. 2
      main/inc/global.inc.php
  2. 5
      main/inc/services.php
  3. 6
      web/index.php

@ -117,7 +117,7 @@ if ($alreadyInstalled) {
}*/ }*/
// For backward compatibility. // For backward compatibility.
$_configuration['dokeos_version'] = $_configuration['system_version']; $_configuration['dokeos_version'] = isset($_configuration['system_version']) ? $_configuration['system_version'] : null;
//$_configuration['dokeos_stable'] = $_configuration['system_stable']; //$_configuration['dokeos_stable'] = $_configuration['system_stable'];
$userPasswordCrypted = (!empty($_configuration['password_encryption']) ? $_configuration['password_encryption'] : 'sha1'); $userPasswordCrypted = (!empty($_configuration['password_encryption']) ? $_configuration['password_encryption'] : 'sha1');
} }

@ -209,6 +209,11 @@ class ManagerRegistry extends AbstractManagerRegistry
unset($this->container[$name]); unset($this->container[$name]);
} }
/**
* @param string $alias
* @return string|void
* @throws BadMethodCallException
*/
public function getAliasNamespace($alias) public function getAliasNamespace($alias)
{ {
throw new \BadMethodCallException('Namespace aliases not supported.'); throw new \BadMethodCallException('Namespace aliases not supported.');

@ -1,6 +1,9 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** Composer autoload */
require_once __DIR__.'/../vendor/autoload.php';
/** /**
* Classic global.inc.php file now returns a Application object * Classic global.inc.php file now returns a Application object
* Make sure you read the documentation/installation_guide.html to learn how * Make sure you read the documentation/installation_guide.html to learn how
@ -9,8 +12,6 @@
/** /**
* Inclusion of main setup script * Inclusion of main setup script
*/ */
require_once __DIR__.'/../vendor/autoload.php';
$app = require_once '../main/inc/global.inc.php'; $app = require_once '../main/inc/global.inc.php';
/** /**
@ -33,4 +34,3 @@ $app = require_once '../main/inc/global.inc.php';
/** @var \Silex\Application $app */ /** @var \Silex\Application $app */
$app->run(); $app->run();
//$app['http_cache']->run();

Loading…
Cancel
Save