Hello
petite question - J! me dit qu'il y a une erreur en ligne 14 et 15
j'essaie de contacter le mec qui a écrit le code mais sans succès... quelqu'un a une idée?
petite question - J! me dit qu'il y a une erreur en ligne 14 et 15
Notice: Only variables should be assigned by reference in /home/smilecol/www/smlcol-ovh/plugins/system/websitePreloader/websitePreloader.php on line 14
Notice: Only variables should be assigned by reference in /home/smilecol/www/smlcol-ovh/plugins/system/websitePreloader/websitePreloader.php on line 15
Notice: Only variables should be assigned by reference in /home/smilecol/www/smlcol-ovh/plugins/system/websitePreloader/websitePreloader.php on line 15
Code:
<?php
/**
* @version 1.1
* @author emkt.mx Fernando Martínez
* @copyright Copyright (C) 2009 - 2014 emkt.mx
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
// no direct access
defined('_JEXEC') or die('Restricted index access');
class plgSystemWebsitePreloader extends JPlugin {
public function onAfterInitialise() {
$app =& JFactory::getApplication();
$document =& JFactory::getDocument();
$scriptUrl = 'plugins/system/websitePreloader/assets/js/preloader.min.js';
$themeUrl = 'plugins/system/websitePreloader/assets/themes/'.$this->params->get('theme','').'.css';
if ($app->isAdmin()) {
}
else{
$document->addStyleSheet($themeUrl);
$document->addScript($scriptUrl);
}
}
}







Commentaire