From: Hendrik B. <nh...@us...> - 2011-06-16 20:17:13
|
Update of /cvsroot/arianne/stendhal_website/content/association In directory vz-cvs-4.sog:/tmp/cvs-serv5594/content/association Modified Files: main.php Log Message: fixed title on non existing pages Index: main.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/association/main.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** main.php 16 Jun 2011 20:08:46 -0000 1.6 --- main.php 16 Jun 2011 20:17:10 -0000 1.7 *************** *** 41,45 **** function writeContent() { global $lang; ! startBox(htmlspecialchars($this->cmsPage->displaytitle)); if ($this->cmsPage != null) { echo $this->cmsPage->content; --- 41,52 ---- function writeContent() { global $lang; ! $title = $_REQUEST['title']; ! if ($title == '') { ! $title = 'Faiumoni'; ! } ! if ($this->cmsPage != null) { ! $title = $this->cmsPage->displaytitle; ! } ! startBox(htmlspecialchars(ucfirst($title))); if ($this->cmsPage != null) { echo $this->cmsPage->content; |