• R/O
  • SSH
  • HTTPS

macwiki: Commit


Commit MetaInfo

Revision762 (tree)
Time2012-06-30 03:57:50
Authortatyana

Log Message

allow to work with PHP 5.4.x

Change Summary

Incremental Difference

--- tatyana/ArticleCommentsLite/ArticleCommentsLite.php (revision 761)
+++ tatyana/ArticleCommentsLite/ArticleCommentsLite.php (revision 762)
@@ -205,7 +205,7 @@
205205 * @param String $text Article/Output text (passed by reference)
206206 * @return Boolean Always tru to give other hooking methods a chance to run.
207207 */
208-function wfProcessEncodedContent($out, $text) {
208+function wfProcessEncodedContent(&$out, &$text) {
209209 $text = preg_replace(
210210 '/<pre>@ENCODED@([0-9a-zA-Z\\+\\/]+=*)@ENCODED@<\\/pre>/e',
211211 'base64_decode("$1")',
@@ -348,7 +348,7 @@
348348 * @param Boolean $isspam Whether the comment is spam (passed by reference)
349349 * @return Boolean Always true to indicate other hooking methods may continue to check for spam.
350350 */
351-function defaultArticleCommentSpamCheck($comment, $commenterName, $commenterURL, $isspam) {
351+function defaultArticleCommentSpamCheck($comment, $commenterName, $commenterURL, &$isspam) {
352352
353353 # Short-circuit if spam has already been determined
354354 if ($isspam) return true;
Show on old repository browser