mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-23 09:26:51 +01:00
removed the "Extensions loaded" message and many warnings in editor/init.js (missing semicolon/ used before initialised)
19 lines
327 B
PHP
19 lines
327 B
PHP
<?php
|
|
|
|
require_once '../../common.php';
|
|
require_once 'defaultValues.php';
|
|
|
|
Common::checkSession();
|
|
|
|
$ext = false;
|
|
//ignore warnings
|
|
$ext = @Common::getJSON('fileExtensions.php');
|
|
|
|
if(!is_array($ext)){
|
|
//default extensions
|
|
$ext = $defaultExtensions;
|
|
}
|
|
|
|
echo json_encode(array('status' => 'success', 'extensions' => $ext));
|
|
|
|
?>
|