diff --git a/CHANGELOG b/CHANGELOG index 7b6201c6f..7b46c9889 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ -------------------------------------------------------------------------------- - PLEASE READ doc/README.Dist-Layout WHEN UPGRADING!!!! - support for upload/import/download of extensions +- extension can have a changelog file - remove ancient code to upgrade from old config file - place all log files in contentDir/log - add readme for new dist layout diff --git a/out/out.ExtensionMgr.php b/out/out.ExtensionMgr.php index c87a2fc43..6e056ad22 100644 --- a/out/out.ExtensionMgr.php +++ b/out/out.ExtensionMgr.php @@ -48,6 +48,7 @@ else if($view) { $view->setParam('httproot', $settings->_httpRoot); + $view->setParam('extdir', $settings->_rootDir."/ext"); $view->setParam('version', $v); $view->setParam('extmgr', $extmgr); $view->setParam('currenttab', $currenttab); diff --git a/views/bootstrap/class.ExtensionMgr.php b/views/bootstrap/class.ExtensionMgr.php index c29b8bc76..2f60bd842 100644 --- a/views/bootstrap/class.ExtensionMgr.php +++ b/views/bootstrap/class.ExtensionMgr.php @@ -67,6 +67,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { $dms = $this->params['dms']; $user = $this->params['user']; $httproot = $this->params['httproot']; + $extdir = $this->params['extdir']; $version = $this->params['version']; $extmgr = $this->params['extmgr']; $currenttab = $this->params['currenttab']; @@ -138,11 +139,16 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { if($extconf['icon']) echo "\"".$extname."\""; echo ""; - echo "".$extconf['title']."
".$extconf['description'].""; + echo "".$extconf['title']; + if($extconf['changelog'] && file_exists($extdir."/".$extname."/".$extconf['changelog'])) { + echo $this->printPopupBox("", '
'.file_get_contents($extdir."/".$extname."/".$extconf['changelog'])."
", true); + } + echo "
".$extconf['description'].""; if($errmsgs) echo "
getImgPath("attention.gif")."\"> ".implode('
', $errmsgs)."
"; echo ""; - echo "".$extconf['version']."
".$extconf['releasedate'].""; + echo "".$extconf['version']; + echo "
".$extconf['releasedate'].""; echo ""; echo "".$extconf['author']['name']."
".$extconf['author']['company'].""; echo "";