Skip to content

Instantly share code, notes, and snippets.

@CB9TOIIIA
Created September 14, 2017 17:44
Show Gist options
  • Save CB9TOIIIA/c80419785179ad4ae1237cf4450bad28 to your computer and use it in GitHub Desktop.
Save CB9TOIIIA/c80419785179ad4ae1237cf4450bad28 to your computer and use it in GitHub Desktop.
404 Joomla warp
<?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