summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2017-11-26 10:37:44 +0100
committersteckbrief <steckbrief@chefmail.de>2017-11-26 10:37:44 +0100
commitd6dfb30a86deb8278732904cee0b05a9cfa230e2 (patch)
tree5d291b23fff63cab6fc9291b2ce8dcaf7da396b3 /index.php
parent253297e60ceacd38e092469e00c19a101aeec05c (diff)
first admin iteration
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/index.php b/index.php
index 9c96bfb..d4dff95 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,7 @@
<?php
+require_once(__DIR__.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'functions.stories.php');
+
$tvSeriesDir = ".";
$tvSeriesDirContent = array_diff(scandir($tvSeriesDir), array('..', '.'));
@@ -26,10 +28,6 @@ foreach ($tvSeriesDirContent as $tvSeriesName) {
}
}
-function visibleName($nameWithUnderscore) {
- return str_replace('_', ' ', $nameWithUnderscore);
-}
-
$currentTvSeriesName = visibleName($currentTvSeries);
?>
@@ -93,7 +91,7 @@ $currentTvSeriesName = visibleName($currentTvSeries);
</div>
<?php
foreach ($characters as $character=>$characterDescription) {
- $characterName = str_replace('_', ' ', $character);
+ $characterName = visibleName($character);
?>
<!-- <?=$characterName;?> -->
<div class="row">