Commit 119acfdc authored by Manfred Kutas's avatar Manfred Kutas

Merge pull request #2 in ZP/z-push from feature/ZP-632-allow-to-replace-config to develop

ZP-632

* commit '61453208':
  Allow to create own entrypoint / index.php with unmodified z-push sources If you use composer or upstream git repo as sub-project you cant modify config.php to your needs. Patch allows to create an own index.php as follows: <?php define('ZPUSH_CONFIG', __DIR__.'/config.php'); $_SERVER['SCRIPT_FILENAME'] = realpath(__DIR__.'/../vendor/zarafa/zpush2/index.php'); chdir('../vendor/zarafa/zpush2'); include('../vendor/zarafa/zpush2/src/index.php');
parents 26c6dff9 61453208
......@@ -120,7 +120,8 @@ include_once('lib/default/searchprovider.php');
include_once('lib/request/request.php');
include_once('lib/request/requestprocessor.php');
include_once('config.php');
if (!defined('ZPUSH_CONFIG')) define('ZPUSH_CONFIG', 'config.php');
include_once(ZPUSH_CONFIG);
include_once('version.php');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment