diff options
author | steckbrief <steckbrief@chefmail.de> | 2017-11-26 10:37:44 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2017-11-26 10:37:44 +0100 |
commit | d6dfb30a86deb8278732904cee0b05a9cfa230e2 (patch) | |
tree | 5d291b23fff63cab6fc9291b2ce8dcaf7da396b3 /index.php | |
parent | 253297e60ceacd38e092469e00c19a101aeec05c (diff) |
first admin iteration
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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"> |