/** * Sets a static variable on this class which means the panel will be reloaded. */ static function ForceReload(){ self::$ForceReload = true; }
public function onAfterWrite(){ if(self::$update_meta_title == 1 || self::$update_meta_desc == 1 || self::$update_meta_keys == 1){ // TODO : find a nicer way to reload the page LeftAndMain::ForceReload (); } parent::onAfterWrite (); }