Clean code.

This commit is contained in:
Lars Jung 2014-06-08 19:18:16 +02:00
parent e497612b6c
commit 9c414c92e2
2 changed files with 22 additions and 27 deletions

View file

@ -4,6 +4,7 @@ class App {
private static $RE_DELIMITER = "|";
private static $ICON_EXTS = array("svg", "png", "jpg");
private static $CUSTOM_EXTS = array("html", "md");
private $options;
@ -269,7 +270,7 @@ class App {
private function read_custom_file($path, $name, &$content, &$type) {
foreach (array("html", "md") as $ext) {
foreach (APP::$CUSTOM_EXTS as $ext) {
$file = "$path/" . FILE_PREFIX . ".$name.$ext";
if (is_readable($file)) {
$content = file_get_contents($file);