Browse Source

Define absolute paths for various includes

- Fix errors running local tests in IDE
pull/6845/head
Hypolite Petovan 3 years ago
parent
commit
ad854d5d40
  1. 3
      include/items.php
  2. 2
      src/BaseObject.php
  3. 2
      src/Render/FriendicaSmartyEngine.php

3
include/items.php

@ -24,7 +24,8 @@ use Friendica\Util\ParseUrl;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
require_once 'mod/share.php';
require_once __DIR__ . '/../mod/share.php';
function add_page_info_data(array $data, $no_photos = false)
{
Hook::callAll('page_info_data', $data);

2
src/BaseObject.php

@ -4,7 +4,7 @@
*/
namespace Friendica;
require_once 'boot.php';
require_once __DIR__ . '/../boot.php';
use Friendica\Network\HTTPException\InternalServerErrorException;

2
src/Render/FriendicaSmartyEngine.php

@ -17,7 +17,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
public function __construct()
{
if (!is_writable('view/smarty3/')) {
if (!is_writable(__DIR__ . '/../../view/smarty3/')) {
echo "<b>ERROR:</b> folder <tt>view/smarty3/</tt> must be writable by webserver.";
exit();
}

Loading…
Cancel
Save