diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-04-02 04:11:04 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-04-02 04:11:04 -0400 |
commit | 40e1ea11041031dd65be0a0541cad0b2dda71d3e (patch) | |
tree | 837649099e80faf1b8c69ddb4f96b4634aee519b /app/views/index.view.php | |
parent | 53733f7d389f84174b6c4294a24d3ab70b852d5d (diff) | |
download | thedroneely.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.php | 6 |
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> |