Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit ecf019a807ef938123ff8b12ab47833a9b03f253

On activity.info fails, show the errors
  
876876 $info_text = str_replace("%", "", $info_text);
877877 $info_text = str_replace(";", ",", $info_text);
878878 $info_text = preg_replace("/(^|\\n)[\t ][^\\n]*/", "", $info_text);
879 file_put_contents($info_file, $info_text);
879 file_put_contents($info_file, $info_text."\n");
880880 $info = parse_ini_file($info_file, false, INI_SCANNER_RAW);
881881 }
882882 $this->_rmtree($tmpdir);
883883
884884 if (!isset($out['error'])) {
885 if (!is_array($info))
885 if (!is_array($info)) {
886886 $out['error'] = _('Cannot parse activity.info file');
887 $last_error = error_get_last();
888 if (is_array($last_error))
889 $out['error'] .= ': '.$last_error['message'];
890 } elseif (!isset($info['name']))
891 $out['error'] = _('The file */activity/activity.info must contain a value for name. See <a href="http://wiki.sugarlabs.org/go/Activity_Team/FAQ#How_to_package_activity.3F">How to package activity?</a> for details.');
887892 else
888893 $out['manifest'] = $info;
889894 }