Added missing.xml to show when an XML file is missing. Not yet tested.

This commit is contained in:
Philip Olson
2010-09-20 04:40:21 +00:00
parent acbd47be4b
commit 33ef6ab197
2 changed files with 13 additions and 0 deletions

View File

@@ -52,6 +52,10 @@
if(!isset($_SESSION['titlesLoaded'])) $_SESSION['titlesLoaded'] = 0;
$presFile = str_replace('..','',(string)$_SESSION['currentPres']); // anti-hack
$presFile = "$presentationDir/$presFile".'.xml';
if (!file_exists($presFile)) {
$presFile = "$baseDir/tools/missing.xml";
}
// Load in the presentation
$fh = fopen($presFile, "rb");

9
tools/missing.xml Normal file
View File

@@ -0,0 +1,9 @@
<slide title="Missing Slide">
<break lines="5" />
<example fontsize="1.8em" marginleft="1.2em" marginright="0.5em">
The desired slide is missing. Please contact the author (with the URL) so that he or she may update this talk.
</example>
</slide>