Skip to content

Commit

Permalink
Renamed View extension to just '.php' to avoid the need of doubling u…
Browse files Browse the repository at this point in the history
…p file extensions on files which are highly likely to contain some PHP anyway
  • Loading branch information
joechilds authored and AliasIO committed Jun 17, 2013
1 parent 5211468 commit e0908c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Swiftlet/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function htmlDecode($value)
*/
public function render()
{
if ( is_file($file = 'views/' . $this->name . '.html.php') ) {
if ( is_file($file = 'views/' . $this->name . '.php') ) {
header('X-Generator: Swiftlet');

require $file;
Expand Down
4 changes: 2 additions & 2 deletions views/error404.html.php → views/error404.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php require('header.html.php') ?>
<?php require('header.php') ?>

<h1><?php echo $this->get('pageTitle') ?></h1>

<p>
Page not found.
</p>

<?php require('footer.html.php') ?>
<?php require('footer.php') ?>
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions views/index.html.php → views/index.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php require 'header.html.php' ?>
<?php require 'header.php' ?>

<h1><?php echo $this->get('pageTitle') ?></h1>

<p>
<?php echo $this->get('helloWorld') ?>
</p>

<?php require 'footer.html.php' ?>
<?php require 'footer.php' ?>

0 comments on commit e0908c9

Please sign in to comment.