Skip to content

Commit

Permalink
use path from construct
Browse files Browse the repository at this point in the history
  • Loading branch information
pskuza committed Jun 16, 2017
1 parent 55b5506 commit 0477491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/php_user/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class user

protected $reset_password_url = 'https://example.com/reset/';

public function __construct(\php_session\session $session, \ParagonIE\EasyDB\EasyDB $db, int $minimum_password_strength_zxcvbn, string $encrypt_key, array $mail_settings)
public function __construct(\php_session\session $session, \ParagonIE\EasyDB\EasyDB $db, int $minimum_password_strength_zxcvbn, string $encrypt_key, array $mail_settings, string $twig_template_dir)
{
$this->session = $session;

Expand Down Expand Up @@ -59,7 +59,7 @@ public function __construct(\php_session\session $session, \ParagonIE\EasyDB\Eas
$phpmailer->setFrom($mail_settings['username']);
$this->phpmailer = $phpmailer;

$loader = new \Twig_Loader_Filesystem('../templates');
$loader = new \Twig_Loader_Filesystem($twig_template_dir);
$twig = new \Twig_Environment($loader);

$this->twig = $twig;
Expand Down

0 comments on commit 0477491

Please sign in to comment.