--- mosif_orig.php	2008-03-17 13:24:36.332004848 +0100
+++ mosif.php	2008-03-17 13:44:54.080561784 +0100
@@ -7,14 +7,19 @@
 *  See readme.txt and homepage for details
 *  http://www.kreacom.dk/mambots/mosif.html
 *
+*  patched by Torsten Ziegler info@ziegi.de to work with joomla 1.5
+*  all changes marked with //ziegi
 **/
 
-defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
+//ziegi defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
+defined( '_JEXEC' ) or die( 'Restricted access' );
 
-$_MAMBOTS->registerFunction( 'onPrepareContent', 'mosIf' );
+//ziegi $_MAMBOTS->registerFunction( 'onPrepareContent', 'mosIf' );
+$mainframe->registerEvent( 'onPrepareContent', 'mosIf' );
 
-function mosIf( $published, &$row, &$params, $page ) {
-  if(!$published) return true;
+//ziegi function mosIf( $published, &$row, &$params, $page ) {
+function mosIf( &$row, &$params, $page=0 ) {
+//ziegi  if(!$published) return true;
   //print_r($row);
   global $mosif_author;
   $mosif_author = $row->author;

