PDA

Zobacz pełną wersję : Sobi2 błędy przy wyświetlaniu vcard



Gordion
06-05-2010, 13:19
Witam,
gdy używam standardowej funkcji to wszystko pięknie wyświetla, problem zaczyna się wtedy jak chcę użyć szablonu zamiast standardowej funkcji. Wywala mi wtedy masę błędów typu:

Strict Standards: Non-static method JLoader::import() should not be called statically in /opt/lampp/htdocs/www/ogloszenia/libraries/loader.php on line 186

A jak odświeżę stronę to jest już ok, wiecie w czym problem?

Zapomniałem podać kod z szablonu ;) używam tego domyślnego:


<?php
/**
* @version $Id: sobi2.vc.tmpl.php 4820 2009-01-05 11:46:25Z Radek Suski $
* @package: Sigsiu Online Business Index 2
* ================================================== =
* @author
* Name: Sigrid & Radek Suski, Sigsiu.NET
* Email: sobi @ sigsiu.net
* Url: http://www.sigsiu.net
* ================================================== =
* @copyright Copyright (C) 2006 - 2009 Sigsiu.NET (http://www.sigsiu.net).
* All rights reserved.
* @license see http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*/

/* Please do not remove this line */
defined('_SOBI2_')||(trigger_error("Restricted access", E_USER_ERROR) && exit());

/* ------------------------------------------------------------------------------
* This is the template for the V-Card View
* ------------------------------------------------------------------------------
*/
/* Don't remove this line! */
function sobi2VCview($id, $style, $ico, $img, $title, $fieldsObjects,
$fieldsFormatted, $plugins, $editButton = null, $deleteButton = null)
{
// For advanced templating comment in the next line if you need to access
// other sobi2 object proporties
// $mySobi = new sobi2( $id );
// $waySearchLink = HTML_SOBI::createWaySearchUrl( $id );
?>
<!-- here starts the template -->

<td <?php echo $style; ?>>
<?php echo $editButton; ?>
<?php echo $deleteButton; ?>
<?php echo $ico; ?>
<?php echo $img; ?>

<?php echo $title; ?>
<?php echo HTML_SOBI::customFieldsData($fieldsFormatted);?>

<!-- here ends the template -->

<!-- Do not remove these lines! --<
</td><?php
}
?>