System update (better error message)
This commit is contained in:
parent
1050919f52
commit
edc9424c6d
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
class YellowImage
|
||||
{
|
||||
const VERSION = "0.7.2";
|
||||
const VERSION = "0.7.3";
|
||||
var $yellow; //access to API
|
||||
var $graphicsLibrary; //graphics library support? (boolean)
|
||||
|
||||
|
@ -104,7 +104,7 @@ class YellowImage
|
|||
if(!$this->saveImage($image, $fileNameOutput, $type) ||
|
||||
!$this->yellow->toolbox->modifyFile($fileNameOutput, $this->yellow->toolbox->getFileModified($fileName)))
|
||||
{
|
||||
$this->yellow->page->error(500, "Image '$fileNameOutput' can't be saved!");
|
||||
$this->yellow->page->error(500, "Can't write file '$fileNameOutput'!");
|
||||
}
|
||||
}
|
||||
$src = $this->yellow->config->get("serverBase").$this->yellow->config->get("imageThumbnailLocation").$fileNameThumb;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
class YellowUpdate
|
||||
{
|
||||
const VERSION = "0.7.3";
|
||||
const VERSION = "0.7.4";
|
||||
var $yellow; //access to API
|
||||
var $updates; //number of updates
|
||||
|
||||
|
@ -412,7 +412,7 @@ class YellowUpdate
|
|||
!$this->yellow->toolbox->modifyFile($fileName, $modified))
|
||||
{
|
||||
$statusCode = 500;
|
||||
$this->yellow->page->error($statusCode, "Can't update file '$fileName'!");
|
||||
$this->yellow->page->error($statusCode, "Can't write file '$fileName'!");
|
||||
}
|
||||
}
|
||||
if($delete)
|
||||
|
|
Loading…
Add table
Reference in a new issue