Skip to content

Commit

Permalink
removing extra slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromunique committed Apr 9, 2017
1 parent cea4b93 commit c7fb622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion protected/vendor/acwpd/helpers/Templater.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Templater {
*/
public function __construct(string $template, array ...$includes) {
/* Update this line to move the template directory */
$this->template_directory = DOCUMENT_ROOT . '/protected/templates/';
$this->template_directory = DOCUMENT_ROOT . 'protected/templates/';

$this->template = $this->template_directory . $template . '.html.php';
$this->includes = $includes;
Expand Down
8 changes: 4 additions & 4 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
if (isset($_SERVER['NFSN_SITE_ROOT'])) {
define('DOCUMENT_ROOT',$_SERVER['NFSN_SITE_ROOT']);
} else {
define('DOCUMENT_ROOT',dirname($_SERVER['DOCUMENT_ROOT']));
define('DOCUMENT_ROOT',dirname($_SERVER['DOCUMENT_ROOT'] . '/'));
}

require_once DOCUMENT_ROOT . '/protected/config.php';
require_once DOCUMENT_ROOT . 'protected/config.php';

require_once DOCUMENT_ROOT . '/protected/vendor/autoload.php';
require_once DOCUMENT_ROOT . 'protected/vendor/autoload.php';

$title = 'Futhark Power Generator' . APP_VERSION;

require_once DOCUMENT_ROOT . '/protected/routes.php';
require_once DOCUMENT_ROOT . 'protected/routes.php';

0 comments on commit c7fb622

Please sign in to comment.