com web/windows: apply changes from pr #3: docroot/index.php templates/header.php
| From: | Anatol Belski | Date: | Tue, 25 Apr 2017 14:05:36 +0000 |
| Subject: | com web/windows: apply changes from pr #3: docroot/index.php templates/header.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25762@lists.php.net to get a copy of this message | ||
Commit: a950a07b0e183d83f64309d24827398920d14d00
Author: Anatol Belski <ab@php.net> Tue, 25 Apr 2017 16:05:36 +0200
Parents: 4859cdfa34102744fd5a12f138a50001453f679c
Branches: master
Link: http://git.php.net/?p=web/windows.git;a=commitdiff;h=a950a07b0e183d83f64309d24827398920d14d00
Log:
apply changes from pr #3
Bugs:
https://bugs.php.net/3
Changed paths:
M docroot/index.php
M templates/header.php
Diff:
diff --git a/docroot/index.php b/docroot/index.php
index b3e2099..ae9391a 100644
--- a/docroot/index.php
+++ b/docroot/index.php
@@ -2,6 +2,9 @@
include __DIR__ . '/../include/config.php';
define('CUR_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
+
+$title_page = 'Home';
+
include TPL_PATH . 'header.php';
diff --git a/templates/header.php b/templates/header.php
index 252e9b0..1a5fa4e 100644
--- a/templates/header.php
+++ b/templates/header.php
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
- <title>PHP For Windows: <?php echo $title_page; ?></title>
+ <title>PHP For Windows: <?php echo @$title_page; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"
/>