diff options
Diffstat (limited to 'demos/hangman/protected/pages')
-rw-r--r-- | demos/hangman/protected/pages/HomePage.php | 2 | ||||
-rw-r--r-- | demos/hangman/protected/pages/config.xml | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/demos/hangman/protected/pages/HomePage.php b/demos/hangman/protected/pages/HomePage.php index ed030d2f..6e0388bc 100644 --- a/demos/hangman/protected/pages/HomePage.php +++ b/demos/hangman/protected/pages/HomePage.php @@ -19,7 +19,7 @@ class HomePage extends TPage $this->LevelError->Visible=true;
return;
}
- $wordFile=Prado::getPathOfNamespace($this->Application->Parameters['wordFile'],'.txt');
+ $wordFile=dirname(__FILE__).'/words.txt';
$words=preg_split("/[\s,]+/",file_get_contents($wordFile));
do
{
diff --git a/demos/hangman/protected/pages/config.xml b/demos/hangman/protected/pages/config.xml deleted file mode 100644 index 80842300..00000000 --- a/demos/hangman/protected/pages/config.xml +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-
-<configuration>
- <pages>
- <page id="home" class="HomePage" />
- </pages>
-</configuration>
\ No newline at end of file |