Просмотр исходного кода

changes the file extension to php and adds a small one-liner to stop PHP from presenting the file to any website visitor

Signed-off-by: El RIDO <elrido@gmx.net>
rugk 8 лет назад
Родитель
Сommit
f037967820
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      lib/Configuration.php
  2. 1 1
      tst/JsonApiTest.php

+ 1 - 1
lib/Configuration.php

@@ -100,7 +100,7 @@ class Configuration
     public function __construct()
     {
         $config     = array();
-        $configFile = PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.ini';
+        $configFile = PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.php';
         if (is_readable($configFile)) {
             $config = parse_ini_file($configFile, true);
             foreach (array('main', 'model', 'model_options') as $section) {

+ 1 - 1
tst/JsonApiTest.php

@@ -283,7 +283,7 @@ class JsonApiTest extends PHPUnit_Framework_TestCase
         $this->reset();
         $paste = Helper::getPasteWithAttachment();
         $this->_model->create(Helper::getPasteId(), $paste);
-        $_GET['jsonld'] = '../cfg/conf.ini';
+        $_GET['jsonld'] = CONF;
         ob_start();
         new PrivateBin;
         $content = ob_get_contents();