mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 14:42:31 +01:00
619e407bcd
* start with subpage design * transitions * transitions * transitions, stuff * modal for trailer * english fallback for trailers * slugs in url * bit refactor * tests and fixtures * travis * update production files * move time limit to config and display error message to user * fix import * fix review
16 lines
276 B
PHP
16 lines
276 B
PHP
<?php
|
|
|
|
function increaseTimeLimit()
|
|
{
|
|
set_time_limit(config('app.PHP_TIME_LIMIT'));
|
|
}
|
|
|
|
function getFileName($file)
|
|
{
|
|
return $file->changed->name ?? $file->name;
|
|
}
|
|
|
|
function mediaType($mediaType)
|
|
{
|
|
return $mediaType == 'movies' ? 'movie' : 'tv';
|
|
} |