| @@ 141-147 (lines=7) @@ | ||
| 138 | } |
|
| 139 | ||
| 140 | // Check for top status |
|
| 141 | if ($position == 1) { |
|
| 142 | $msg .= '.top1'; |
|
| 143 | } else if ($position <= 5) { |
|
| 144 | $msg .= '.top5'; |
|
| 145 | } else { |
|
| 146 | $msg .= '.any'; |
|
| 147 | } |
|
| 148 | ||
| 149 | $securedBy = $this->getSecuredBy($record, $oldRecord); |
|
| 150 | $this->sendMessage( |
|
| @@ 183-189 (lines=7) @@ | ||
| 180 | ||
| 181 | // Check which message to send. |
|
| 182 | $msg = 'secures'; |
|
| 183 | if ($position == 1) { |
|
| 184 | $msg .= '.top1'; |
|
| 185 | } else if ($position <= 5) { |
|
| 186 | $msg .= '.top5'; |
|
| 187 | } else { |
|
| 188 | $msg .= '.any'; |
|
| 189 | } |
|
| 190 | ||
| 191 | $securedBy = $this->getSecuredBy($record, $oldRecord); |
|
| 192 | $this->sendMessage( |
|