Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 425... Línea 425...
425
            $subject = $isdeleted ? get_string('forumsubjectdeleted', 'forum') : get_string('forumsubjecthidden', 'forum');
425
            $subject = $isdeleted ? get_string('forumsubjectdeleted', 'forum') : get_string('forumsubjecthidden', 'forum');
426
            $message = $isdeleted ? get_string('forumbodydeleted', 'forum') : get_string('forumbodyhidden', 'forum');
426
            $message = $isdeleted ? get_string('forumbodydeleted', 'forum') : get_string('forumbodyhidden', 'forum');
427
            $timecreated = null;
427
            $timecreated = null;
428
        }
428
        }
Línea 429... Línea -...
429
 
-
 
430
        $replysubject = $subject;
-
 
431
        $strre = get_string('re', 'forum');
-
 
432
        if (!(substr($replysubject, 0, strlen($strre)) == $strre)) {
-
 
433
            $replysubject = "{$strre} {$replysubject}";
-
 
434
        }
-
 
435
 
429
 
436
        $showwordcount = $forum->should_display_word_count();
430
        $showwordcount = $forum->should_display_word_count();
437
        if ($showwordcount) {
431
        if ($showwordcount) {
438
            $wordcount = $post->get_wordcount() ?? count_words($message);
432
            $wordcount = $post->get_wordcount() ?? count_words($message);
439
            $charcount = $post->get_charcount() ?? count_letters($message);
433
            $charcount = $post->get_charcount() ?? count_letters($message);
Línea 443... Línea 437...
443
        }
437
        }
Línea 444... Línea 438...
444
 
438
 
445
        return [
439
        return [
446
            'id' => $post->get_id(),
440
            'id' => $post->get_id(),
447
            'subject' => $subject,
441
            'subject' => $subject,
448
            'replysubject' => $replysubject,
442
            'replysubject' => $subject,
449
            'message' => $message,
443
            'message' => $message,
450
            'messageformat' => $post->get_message_format(),
444
            'messageformat' => $post->get_message_format(),
451
            'author' => $exportedauthor,
445
            'author' => $exportedauthor,
452
            'discussionid' => $post->get_discussion_id(),
446
            'discussionid' => $post->get_discussion_id(),