Created
November 17, 2015 10:51
-
-
Save hans2103/8ca9264ef58f9e4135fb to your computer and use it in GitHub Desktop.
show content of given Joomla article on 404 page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
*/ | |
defined('_JEXEC') or die; | |
if (($this->error->getCode()) == '404') { | |
header("HTTP/1.0 404 Not Found"); | |
echo file_get_contents(JURI::root().'index.php?option=com_content&view=article&id=44&Itemid=584'); | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment