aboutsummaryrefslogtreecommitdiff
path: root/app/views/index.view.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/index.view.php')
-rw-r--r--app/views/index.view.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/index.view.php b/app/views/index.view.php
index 7c02198..1388848 100644
--- a/app/views/index.view.php
+++ b/app/views/index.view.php
@@ -61,8 +61,7 @@
<?php
$recentPosts = new DOMExtract();
- $recentPosts->setSource($_SERVER['DOCUMENT_ROOT'] . '/posts/index.html');
- echo $recentPosts->getInnerHTML('recent-article');
+ echo $recentPosts->innerHTML('recent-articles', $_SERVER['DOCUMENT_ROOT'] . '/posts/index.html');
?>
<a href="/posts/page/2/"
@@ -86,8 +85,7 @@
<?php
$recentProjects = new DOMExtract();
- $recentProjects->setSource($_SERVER['DOCUMENT_ROOT'] . '/projects/index.html');
- echo $recentProjects->getInnerHTML('recent-article');
+ echo $recentPosts->innerHTML('recent-articles', $_SERVER['DOCUMENT_ROOT'] . '/projects/index.html');
?>
</div>