| @@ 123-129 (lines=7) @@ | ||
| 120 | } |
|
| 121 | ||
| 122 | // Check for top status |
|
| 123 | if ($position == 1) { |
|
| 124 | $msg .= '.top1'; |
|
| 125 | } else if ($position <= 5) { |
|
| 126 | $msg .= '.top5'; |
|
| 127 | } else { |
|
| 128 | $msg .= '.any'; |
|
| 129 | } |
|
| 130 | ||
| 131 | $securedBy = $this->getSecuredBy($record, $oldRecord); |
|
| 132 | $this->sendMessage( |
|
| @@ 165-171 (lines=7) @@ | ||
| 162 | ||
| 163 | // Check which message to send. |
|
| 164 | $msg = 'secures'; |
|
| 165 | if ($position == 1) { |
|
| 166 | $msg .= '.top1'; |
|
| 167 | } else if ($position <= 5) { |
|
| 168 | $msg .= '.top5'; |
|
| 169 | } else { |
|
| 170 | $msg .= '.any'; |
|
| 171 | } |
|
| 172 | ||
| 173 | $securedBy = $this->getSecuredBy($record, $oldRecord); |
|
| 174 | $this->sendMessage( |
|