[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/media/includes/classes
From: Chris Howells <howells () kde ! org>
Date: 2003-06-23 18:33:07
[Download RAW message or body]
CVS commit by howells:
Should be much more efficient
M +6 -4 class_faq.inc 1.5
--- www/media/includes/classes/class_faq.inc #1.4:1.5
@@ -20,6 +20,4 @@
function FAQ()
{
- global $site_locale;
- $this->tr = new Translate($site_locale);
}
@@ -41,6 +39,10 @@
function show()
{
+ global $site_locale;
+ $this->tr = new Translate($site_locale);
+
if (count($this->items) && count($this->questionanswer))
{
+
print "<a name=\"questions\"><h2>". \
$this->tr->i18n_var("Questions") . "</h2></a>\n";
@@ -87,10 +89,10 @@
$this->question = $question;
$this->answer = $answer;
- global $site_locale;
- $this->tr = new Translate($site_locale);
}
function show()
{
+ global $site_locale;
+ $this->tr = new Translate($site_locale);
print "<a name=\"" . ereg_replace("[^a-zA-Z]", "", $this->question) \
. "\"><h4>$this->question</h4></a>\n"; print "<p>$this->answer</p>\n";
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic