Commit f909191c4e6d6e3fc924f99a87869e0a1b7728eb

Authored by michael
1 parent 42e80c3b

corrected image size checking (thanks pstav@adelie.net)


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2293 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/news/editNewsBL.php
... ... @@ -57,7 +57,7 @@ if (checkSession()) {
57 57 // we have an image, now check the size
58 58 $iImgWidth = $aSize[0];
59 59 $iImgHeight = $aSize[1];
60   - if (DashboardNews::checkImageSize($iImgWidth, $iImgHeight)) {
  60 + if ($oDashboardNews->checkImageSize($iImgWidth, $iImgHeight)) {
61 61 // size is fine, so set it
62 62 $oDashboardNews->setImageFile($_FILES['fImage']['tmp_name']);
63 63  
... ...