summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
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">