Created
September 14, 2017 17:44
-
-
Save CB9TOIIIA/c80419785179ad4ae1237cf4450bad28 to your computer and use it in GitHub Desktop.
404 Joomla warp
This file contains hidden or 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 | |
/** | |
* @package yoo_master2 | |
* @author YOOtheme http://www.yootheme.com | |
* @copyright Copyright (C) YOOtheme GmbH | |
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL | |
*/ | |
// no direct access | |
defined('_JEXEC') or die('Restricted access'); | |
// get warp | |
$warp = require(__DIR__.'/warp.php'); | |
// set messages | |
$title = $this->title; | |
$error = $this->error->getCode(); | |
$message = $this->error->getMessage(); | |
// set 404 messages | |
if ($error == '404') { | |
if ($this->_error->get('code') == '404') { | |
echo file_get_contents(JURI::root().'/404'); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment