mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-07 04:10:46 +00:00
Merge pull request #5540 from jippi/patch-1
fix: don't restore memory limit after cities import
This commit is contained in:
commit
49a6e69858
1 changed files with 0 additions and 2 deletions
|
@ -74,7 +74,6 @@ class ImportCities extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$old_memory_limit = ini_get('memory_limit');
|
|
||||||
ini_set('memory_limit', '256M');
|
ini_set('memory_limit', '256M');
|
||||||
$path = storage_path('app/cities.json');
|
$path = storage_path('app/cities.json');
|
||||||
|
|
||||||
|
@ -137,7 +136,6 @@ class ImportCities extends Command
|
||||||
$this->line('');
|
$this->line('');
|
||||||
$this->info('Successfully imported ' . $cityCount . ' entries!');
|
$this->info('Successfully imported ' . $cityCount . ' entries!');
|
||||||
$this->line('');
|
$this->line('');
|
||||||
ini_set('memory_limit', $old_memory_limit);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue