changeset 560:279a98abe3d3

Use locale initialization properly.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 24 Dec 2013 22:20:50 +0200
parents 67c6bde8d265
children 6b4cbd590d35
files admin.php index.php msitegen.inc.php show.php
diffstat 4 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/admin.php	Tue Dec 24 22:20:07 2013 +0200
+++ b/admin.php	Tue Dec 24 22:20:50 2013 +0200
@@ -53,7 +53,6 @@
 
 // Start output
 $pageCSS["admin.css"] = "";
-cmLocaleInit();
 cmPrintPageHeader("FAPWeb Administration",
   "  <meta http-equiv=\"Pragma\" content=\"no-cache\" />\n",
   FALSE);
--- a/index.php	Tue Dec 24 22:20:07 2013 +0200
+++ b/index.php	Tue Dec 24 22:20:50 2013 +0200
@@ -8,7 +8,6 @@
 require_once "msite.inc.php";
 require_once "msession.inc.php";
 
-cmLocaleInit();
 
 // Switch to https first, if needed
 $isSecurePage = isset($_GET["page"]) && array_key_exists($_GET["page"], $securePages);
--- a/msitegen.inc.php	Tue Dec 24 22:20:07 2013 +0200
+++ b/msitegen.inc.php	Tue Dec 24 22:20:50 2013 +0200
@@ -681,6 +681,8 @@
 {
   global $pageCSS, $pageCharset, $pageAuthor, $pageCSSData, $pageUrchin;
 
+  cmLocaleInit();
+
   echo
   "<!DOCTYPE html>\n".
   "<html>\n".
--- a/show.php	Tue Dec 24 22:20:07 2013 +0200
+++ b/show.php	Tue Dec 24 22:20:50 2013 +0200
@@ -11,7 +11,6 @@
 
 $pageCSS["show.css"] = "";
 
-cmLocaleInit();
 stSetupCacheControl();
 
 cmPrintPageHeader("PARTY INFORMATION DISPLAY SYSTEM", "", FALSE);