Increase page length for ANSI, and minor updates
This commit is contained in:
@@ -76,16 +76,21 @@ class FrameImport extends Command
|
||||
$o->frame = $this->argument('frame');
|
||||
$o->index = $this->argument('index');
|
||||
$o->mode_id = $mo->id;
|
||||
$o->access = $this->option('access');
|
||||
$o->public = $this->option('public');
|
||||
$o->cost = $this->option('cost');
|
||||
$o->type = $this->option('type');
|
||||
}
|
||||
|
||||
// We need to escape any back slashes.
|
||||
$o->content = str_replace('\\','\\\\',($this->option('trim'))
|
||||
? substr(file_get_contents($this->argument('file')),40)
|
||||
: file_get_contents($this->argument('file')));
|
||||
|
||||
$o->access = $this->option('access');
|
||||
$o->public = $this->option('public');
|
||||
$o->cost = $this->option('cost');
|
||||
$o->type = $this->option('type');
|
||||
// If we have 0x1aSAUCE, we'll discard the sauce.
|
||||
if ($x = strpos($o->content,chr(0x1a).'SAUCE')) {
|
||||
$o->content = substr($o->content,0,$x-1).chr(0x0a);
|
||||
}
|
||||
|
||||
$o->save();
|
||||
}
|
||||
|
Reference in New Issue
Block a user