mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-11 16:55:46 +00:00

- add james-heinrich/getid3 library as a dependency to composer.json - update DEPENDENCIES.md file - fix episodes table migration script - add js devDependencies: prettier, @prettier/plugin-php and lint-staged to automatically format staged files before commit - reformat all files to the prettier format - refactor code by separating some logic as helper functions - overwrite existing files when uploading new files with the same name fixes #1
30 lines
886 B
PHP
30 lines
886 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| ERROR DISPLAY
|
|
|--------------------------------------------------------------------------
|
|
| Don't show ANY in production environments. Instead, let the system catch
|
|
| it and display a generic error message.
|
|
*/
|
|
ini_set('display_errors', '0');
|
|
error_reporting(
|
|
E_ALL &
|
|
~E_NOTICE &
|
|
~E_DEPRECATED &
|
|
~E_STRICT &
|
|
~E_USER_NOTICE &
|
|
~E_USER_DEPRECATED
|
|
);
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| DEBUG MODE
|
|
|--------------------------------------------------------------------------
|
|
| Debug mode is an experimental flag that can allow changes throughout
|
|
| the system. It's not widely used currently, and may not survive
|
|
| release of the framework.
|
|
*/
|
|
|
|
defined('CI_DEBUG') || define('CI_DEBUG', 0);
|