| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -3194,7 +3194,7 @@ class CourseManager | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $course_info          = api_get_course_info($course_code); | 
					 | 
					 | 
					 | 
					        $course_info          = api_get_course_info($course_code); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $store_path           = api_get_path(SYS_COURSE_PATH).$course_info['path'];   // course path | 
					 | 
					 | 
					 | 
					        $store_path           = api_get_path(SYS_COURSE_PATH).$course_info['path'];   // course path | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $course_image         = $store_path.'/course-pic.png';                      // image name for courses | 
					 | 
					 | 
					 | 
					        $course_image         = $store_path.'/course-pic.png';                      // image name for courses | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $course_medium_image  = $store_path.'/course-pic85x85.png'; | 
					 | 
					 | 
					 | 
					        $course_medium_image  = $store_path.'/course-pic300x180.png'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //$extension            = strtolower(substr(strrchr($filename, '.'), 1)); | 
					 | 
					 | 
					 | 
					        //$extension            = strtolower(substr(strrchr($filename, '.'), 1)); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (file_exists($course_image)) { | 
					 | 
					 | 
					 | 
					        if (file_exists($course_image)) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -3210,8 +3210,8 @@ class CourseManager | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if ($result) { | 
					 | 
					 | 
					 | 
					        if ($result) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $medium = new Image($course_image); | 
					 | 
					 | 
					 | 
					            $medium = new Image($course_image); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            //$picture_infos = $medium->get_image_size(); | 
					 | 
					 | 
					 | 
					            //$picture_infos = $medium->get_image_size(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $medium->resize(100, 85, 0, false); | 
					 | 
					 | 
					 | 
					            $medium->resize(300, 180, 0, false); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $medium->send_image($store_path.'/course-pic85x85.png', -1, 'png'); | 
					 | 
					 | 
					 | 
					            $medium->send_image($store_path.'/course-pic300x180.png', -1, 'png'); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return $result; | 
					 | 
					 | 
					 | 
					        return $result; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |