diff --git a/codesite2git b/codesite2git index ba4ec49..7e99a72 100755 --- a/codesite2git +++ b/codesite2git @@ -87,16 +87,16 @@ class CProjectGitExporter extends CProject { // Extra properties file $ctime = $this->lastupdate - ($this->lifespan * 3600); // Lifespans are measured in hours - $nice_shortdesc = $this->shortdesc; - if (strlen($nice_shortdesc) > 0) { - $nice_shortdesc = rtrim($this->shortdesc, '.').'.'; - $nice_shortdesc[0] = strtoupper($nice_shortdesc[0]); + + if (strlen($this->shortdesc) > 0) { + $this->shortdesc = rtrim($this->shortdesc, '.').'.'; + $this->shortdesc[0] = strtoupper($this->shortdesc[0]); } file_put_contents($dest.'/.legacy-codesite.toml', "# Converted with codesite2git project_name=".json_encode($this->projname)." -short_description=".json_encode($nice_shortdesc)." +short_description=".json_encode($this->shortdesc)." written_in_lang=".json_encode($this->subtag)." topics=".json_encode($this->tags)." ctime=".$ctime." diff --git a/lib/CProject.php b/lib/CProject.php index 21292b7..7155875 100644 --- a/lib/CProject.php +++ b/lib/CProject.php @@ -4,7 +4,14 @@ class CProject { protected $dir; + /** + * @var string $projname + */ public $projname; + + /** + * @var string $shortdesc + */ public $shortdesc = '(no description)'; public $subtag = ''; public $lastupdate = 0;