Constants cannot hold arrays.
This commit is contained in:
parent
b5149d2da7
commit
56d606adf0
@ -1,15 +1,10 @@
|
|||||||
<?php class Message
|
<?php class Message
|
||||||
{
|
{
|
||||||
const TYPE_DISPLAY_NAMES = array("Chat", "PM");
|
public static $TYPE_DISPLAY_NAMES = array("Chat", "PM");
|
||||||
|
|
||||||
const TYPE_CHAT = 0;
|
const TYPE_CHAT = 0;
|
||||||
const TYPE_PM = 1;
|
const TYPE_PM = 1;
|
||||||
|
|
||||||
static function init()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $type
|
* @param $type
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -199,7 +199,7 @@ function removeBadCharacters($input)
|
|||||||
<link rel="stylesheet" href="css/tiger.css">
|
<link rel="stylesheet" href="css/tiger.css">
|
||||||
<link href='https://fonts.googleapis.com/css?family=Crete+Round' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Crete+Round' rel='stylesheet' type='text/css'>
|
||||||
<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
|
||||||
<title>Report #<?php $report->getId() ?> · Mineplex</title>
|
<title>Report #<?= $report->getId() ?> · Mineplex</title>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#test").click(function (){
|
$("#test").click(function (){
|
||||||
@ -240,7 +240,7 @@ function removeBadCharacters($input)
|
|||||||
|
|
||||||
foreach($messages as $message):
|
foreach($messages as $message):
|
||||||
$typeId = $message->getType();
|
$typeId = $message->getType();
|
||||||
$typeDisplayName = Message::TYPE_DISPLAY_NAMES[$typeId];
|
$typeDisplayName = Message::$TYPE_DISPLAY_NAMES[$typeId];
|
||||||
$isPM = strcmp($typeId, Message::TYPE_PM) == 0;
|
$isPM = strcmp($typeId, Message::TYPE_PM) == 0;
|
||||||
|
|
||||||
// If this is a PM, then the "-> <recipient>" suffix will be applied.
|
// If this is a PM, then the "-> <recipient>" suffix will be applied.
|
||||||
|
Loading…
Reference in New Issue
Block a user