diff options
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"> |