CoreFiles by mySites.guru
mod_custom.php21 lines, 735 bytes, from Joomla_3.8.3-Stable-Full_Package.zip
Raw History Compare with 3.8.2
md5
1ccdf8abd4165859b41e814132fd343b
sha1
b52883d93c96a524ba7f096aed6ae4ab9941d65c
sha256
ca3ef8214cf69eedf22402dd3252794237b88efa3bd30ade4db0bde741b6402f
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_custom
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

if ($params->def('prepare_content', 1))
{
	JPluginHelper::importPlugin('content');
	$module->content = JHtml::_('content.prepare', $module->content, '', 'mod_custom.content');
}

// Replace 'images/' to '../images/' when using an image from /images in backend.
$module->content = preg_replace('*src\=\"(?!administrator\/)images/*', 'src="../images/', $module->content);

require JModuleHelper::getLayoutPath('mod_custom', $params->get('layout', 'default'));

The same content is in 35 releases, Joomla 3.7.0-alpha2 to 4.0.0-alpha2. See them all, or every version of this file.