Ejemplo n.º 1
0
 function set($key, $val)
 {
     $oldVal = $this->get($key);
     if ($oldVal == $val) {
         return;
     }
     // we would use '===' here, but we can't be sure
     // that form data from the user will be of the same
     // variable type. ie, "5" == 5 is true, but "5" === 5
     // is not
     parent::set($key, $val);
     $this->_changed[$key] = true;
 }
Ejemplo n.º 2
0
 /**
  * This function prints out an error message to tell the user that something went wrong in the startup check process.
  * @access private
  * @return void
  * @static
  */
 static function error($string)
 {
     $f = new FieldSet();
     $f->set("pageTitle", _("Startup Error"));
     $f->set("intro", _("The startup process has encountered a problem"));
     $f->set("errorString", $string);
     $tpl = new Template("error.tpl.php", POLYPHONY . "/main/library/StartupCheck/");
     $tpl->output($f);
     exit(1);
     // exit with error
 }