class mw_data_thumbs extends mw_data{
- function mw_thumbs_activated(){
+ public function mw_thumbs_activated(){
return true;
}
- function img_thumb($src, $max_width, $max_height, $thumbs_dir = "", $background_color = array(255, 255, 255), $CROP = false){
+ public function img_thumb($src, $max_width, $max_height, $thumbs_dir = "", $background_color = array(255, 255, 255), $CROP = false){
if(strlen($thumbs_dir) > 0){
if(!@is_dir($thumbs_dir)) @mkdir($thumbs_dir);
if(!@is_dir($thumbs_dir)) return false;
return $thumb;
}
- function make_thumb(
+ public function make_thumb(
$src,
$max_width,
$max_height,
return false;
}
- function new_thumb_file_name($dest, $file_name, $prefix = "img_"){
+ public function new_thumb_file_name($dest, $file_name, $prefix = "img_"){
$dest .= strlen($dest) > 0 && substr($dest, -1) != "/" ? "/" : "";
if(is_dir($dest)){
$ext = "";
}
}
-
-?>
\ No newline at end of file