I can not run update.php, I did it  php5 update.php as well. It gives me :
"parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in
.../w/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php on line
221"

MediaWiki 1.16.0, PHP 5.2.9 (cgi), MySQL 5.0.91mm-log, Semantic MediaWiki
(Version 1.5.1.1)

/**
 * Formats an array of message strings so that it appears as a tooltip.
 * $icon should be one of: 'warning' (default), 'info'.
 *
 * @param array $messages
 * @param string $icon Acts like an enum. Callers must ensure safety, since
this value is used directly in the output.
 * @param string $seperator
 *
 * @return string
 */
Line221: "function smwfEncodeMessages( array $messages, $icon = 'warning',
$seperator = ' <!--br-->' ) {
    if ( count( $messages ) > 0 ) {
        SMWOutputs::requireHeadItem( SMW_HEADER_TOOLTIP );
        foreach( $messages as &$message ) $message = htmlspecialchars(
$message );
        $messageString = implode( $seperator, $messages );
        return '<span class="smwttpersist"><span class="smwtticon">' . $icon
. '.png</span><span class="smwttcontent">' . $messageString . '</span>
</span>';
    } else {
        return '';
    }
}"

What is wrong?
--
Natasha Brown                          skype: russian_natasha
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to