1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 14:42:31 +01:00
flox/backend/app/helpers.php
Viktor Geringer 619e407bcd subpage design (#64)
* 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
2017-04-11 08:45:08 +02:00

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';
}