aboutsummaryrefslogtreecommitdiff
path: root/app/views/index.view.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-04-02 04:11:04 -0400
committerThedro Neely <thedroneely@gmail.com>2022-04-02 04:11:04 -0400
commit40e1ea11041031dd65be0a0541cad0b2dda71d3e (patch)
tree837649099e80faf1b8c69ddb4f96b4634aee519b /app/views/index.view.php
parent53733f7d389f84174b6c4294a24d3ab70b852d5d (diff)
downloadthedroneely.com-40e1ea11041031dd65be0a0541cad0b2dda71d3e.tar.gz
thedroneely.com-40e1ea11041031dd65be0a0541cad0b2dda71d3e.tar.bz2
thedroneely.com-40e1ea11041031dd65be0a0541cad0b2dda71d3e.zip
app/model/HTMLExtract: Simplify
Empty elements not supported in libxml2.
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>