--- db/prgsrc/drupal/modules/chgk_db/classes/DbPackage.class.php 2010/03/09 21:08:33 1.3 +++ db/prgsrc/drupal/modules/chgk_db/classes/DbPackage.class.php 2010/03/20 17:23:42 1.4 @@ -69,13 +69,16 @@ class DbPackage { return $this->getTitle(); } public function getInfo() { - return $this->tour->Info; + $info = $this->tour->Info; + $info = preg_replace('/(\s+)-+(\s+)/','\1—$2', $info); + + return $info; } -public function hasEditor() { + public function hasEditor() { return $this->tour->Editors?TRUE:FALSE; } -public function hasInfo() { - return $this->tour->Editors?TRUE:FALSE; + public function hasInfo() { + return $this->tour->Info?TRUE:FALSE; } public function getEditor() { @@ -84,6 +87,8 @@ public function hasInfo() { public function getEditorHtml() { $ed = $this->tour->Editors; + $ed = preg_replace('/(\s+)-+(\s+)/','\1—$2', $ed); + if (preg_match('/\,/', $ed)) { $ob = 'Редакторы: '; } else {