Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

skipped warnings (testet with php 5.3)

  • Loading branch information...
commit c4448df1917e8b1f3147f7caf6cd37a786fad861 1 parent 8b768e2
Alan Knowles roojs authored
8 HTML/Template/Flexy/SmartyAPI.php
View
@@ -161,8 +161,12 @@ function display($templatename,$object=null,$elements=array())
// some standard stuff available to a smarty template..
$this->vars['SCRIPT_NAME'] = $_SERVER['SCRIPT_NAME'];
-
- $o = PEAR::getStaticProperty('HTML_Template_Flexy','options');
+ if (class_exists('PEAR5',false)) {
+ $o = PEAR5::getStaticProperty('HTML_Template_Flexy','options');
+ }
+ else {
+ $o = PEAR::getStaticProperty('HTML_Template_Flexy','options');
+ }
require_once 'HTML/Template/Flexy.php';
$t = new HTML_Template_Flexy;
8 HTML/Template/Flexy/Token/Tag.php
View
@@ -142,10 +142,14 @@ function getAttribute($key) {
//var_dump($this->attributes);
// this is weird case isset() returns false on this being null!
-
- if (@$this->ucAttributes[$key] === true) {
+ //smata:
+ if (array_key_exists($key, $this->ucAttributes) && $this->ucAttributes[$key] === true) {
return true;
}
+//
+// if (@$this->ucAttributes[$key] === true) {
+// return true;
+// }
if (!isset($this->ucAttributes[$key])) {
return false;
7 HTML/Template/Flexy/Translator.php
View
@@ -107,7 +107,12 @@ function HTML_Template_Flexy_Translator($options= array()) {
if (!in_array($this->options['baseLang'], $this->options['targetLangs'])) {
$this->options['targetLangs'][] = $this->options['baseLang'];
}
- $o = PEAR::getStaticProperty('HTML_Template_Flexy','options');
+ if (class_exists('PEAR5',false)) {
+ $o = PEAR5::getStaticProperty('HTML_Template_Flexy','options');
+ }
+ else {
+ $o = PEAR::getStaticProperty('HTML_Template_Flexy','options');
+ }
if (!strlen($this->options['templateDir'])) {
$this->options['templateDir'] = $o['templateDir'];
}
8 HTML/Template/Flexy/compileAll.php
View
@@ -37,8 +37,12 @@
}
$config = parse_ini_file($_SERVER['argv'][1], true);
-
-$options = &PEAR::getStaticProperty('HTML_Template_Flexy','options');
+if (class_exists('PEAR5',false)) {
+ $options = &PEAR5::getStaticProperty('HTML_Template_Flexy','options');
+}
+else {
+ $options = &PEAR::getStaticProperty('HTML_Template_Flexy','options');
+}
$options = $config['HTML_Template_Flexy'];
if (!$options) {
Please sign in to comment.
Something went wrong with that request. Please try again.