mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix suggest xss + nfo view style default
This commit is contained in:
@@ -19,8 +19,6 @@ class Torrent extends NexusModel
|
||||
'times_completed', 'approval_status', 'banned', 'visible', 'pos_state_until',
|
||||
];
|
||||
|
||||
private static $globalPromotionState;
|
||||
|
||||
const VISIBLE_YES = 'yes';
|
||||
const VISIBLE_NO = 'no';
|
||||
|
||||
@@ -156,6 +154,14 @@ class Torrent extends NexusModel
|
||||
],
|
||||
];
|
||||
|
||||
const NFO_VIEW_STYLE_DOS = 'magic';
|
||||
const NFO_VIEW_STYLE_WINDOWS = 'latin-1';
|
||||
|
||||
public static array $nfoViewStyles = [
|
||||
self::NFO_VIEW_STYLE_DOS => ['text' => 'DOS-vy'],
|
||||
self::NFO_VIEW_STYLE_WINDOWS => ['text' => 'Windows-vy'],
|
||||
];
|
||||
|
||||
public function getPickInfoAttribute()
|
||||
{
|
||||
$info = self::$pickTypes[$this->picktype] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user