From bbaf65234fc69effce584b6e6b89173693ad907a Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 1 Oct 2007 18:14:00 +0000 Subject: Added it::date() (and made it_text silent when texts.php is missing) --- it_text.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_text.class') diff --git a/it_text.class b/it_text.class index 76e8aed..de3fe52 100644 --- a/it_text.class +++ b/it_text.class @@ -34,10 +34,10 @@ function it_text($p = null) # Read $this->statictext from php file if it's not defined yet if (!$this->statictext) - include($this->p['phpfile']); + @include($this->p['phpfile']); # Get array of supported languages and their names - $this->languages_available = $this->statictext['_']; + $this->languages_available = (array)$this->statictext['_']; foreach($this->languages_available as $code => $languagename) { # Only use a language in browser/cookie detection below if it's not disabled by a leading '-' -- cgit v1.2.3