|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
takagi Smarty n00b
Joined: 13 Sep 2007 Posts: 1 Location: Osaka, JAPAN
|
Posted: Mon Sep 17, 2007 2:17 am Post subject: [PATCH] fix broken smarty-web contents |
|
|
Hi,
The following pages on smarty-web don't have the common header and sideber.
- manual/ja/language.function.section.php
- manual/fr/language.function.section.php
The patch below will fix them.
Code: |
Index: manual/fr/language.function.section.php
===================================================================
RCS file: /repository/smarty-web/manual/fr/language.function.section.php,v
retrieving revision 1.13
diff -u -r1.13 language.function.section.php
--- manual/fr/language.function.section.php 5 May 2007 11:11:23 -0000 1.13
+++ manual/fr/language.function.section.php 17 Sep 2007 01:57:30 -0000
@@ -1,4 +1,4 @@
-<HTML
+<?php if(!isset($_GET["print"])&&!strstr($_SERVER["REQUEST_URI"],"/print/")){ini_set("default_charset","ISO-8859-1");commonHeader();}else{ ?><HTML
><HEAD
><TITLE
>{section},{sectionelse}</TITLE
@@ -26,7 +26,7 @@
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
-><DIV
+><?php } ?><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
Index: manual/ja/language.function.section.php
===================================================================
RCS file: /repository/smarty-web/manual/ja/language.function.section.php,v
retrieving revision 1.1
diff -u -r1.1 language.function.section.php
--- manual/ja/language.function.section.php 4 May 2007 08:43:48 -0000 1.1
+++ manual/ja/language.function.section.php 17 Sep 2007 01:57:31 -0000
@@ -1,4 +1,4 @@
-<HTML
+<?php if(!isset($_GET["print"])&&!strstr($_SERVER["REQUEST_URI"],"/print/")){ini_set("default_charset","utf-8");commonHeader();}else{ ?><HTML
><HEAD
><TITLE
>{section},{sectionelse}</TITLE
@@ -26,7 +26,7 @@
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
-><DIV
+><?php } ?><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
|
Or, apply the following patch and rebuild smarty-web will also fix them.
Code: |
Index: docs/scripts/generate_web.php
===================================================================
RCS file: /repository/smarty/docs/scripts/generate_web.php,v
retrieving revision 1.6
diff -u -r1.6 generate_web.php
--- docs/scripts/generate_web.php 21 Jun 2004 10:37:52 -0000 1.6
+++ docs/scripts/generate_web.php 17 Sep 2007 01:57:47 -0000
@@ -21,6 +21,7 @@
$Id: generate_web.php,v 1.6 2004/06/21 10:37:52 messju Exp $
*/
+ini_set('pcre.backtrack_limit', 150000); // Default is 100000, available since PHP 5.2.0
set_time_limit(0);
$search = array(
|
|
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Sep 17, 2007 5:16 pm Post subject: |
|
|
fixed. thanks! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|