original_string: public function get_maxheight() {
          $param = optional_param('wikimedia_maxheight', 0, PARAM_INT);
          $pref = get_user_preferences('repository_wikimedia_maxheight', WIKIMEDIA_IMAGE_SIDE_LENGTH);
          if ($param > 0 && $param != $pref) {
              $pref = $param;
              set_user_preference('repository_wikimedia_maxheight', $pref);
          }
          return $pref;
      }
code: public function get_maxheight() {
          $param = optional_param('wikimedia_maxheight', 0, PARAM_INT);
          $pref = get_user_preferences('repository_wikimedia_maxheight', WIKIMEDIA_IMAGE_SIDE_LENGTH);
          if ($param > 0 && $param != $pref) {
              $pref = $param;
              set_user_preference('repository_wikimedia_maxheight', $pref);
          }
          return $pref;
      }
code_tokens: public function get_maxheight ( ) { $ param = optional_param ( 'wikimedia_maxheight' , 0 , PARAM_INT ) ; $ pref = get_user_preferences ( 'repository_wikimedia_maxheight' , WIKIMEDIA_IMAGE_SIDE_LENGTH ) ; if ( $ param > 0 && $ param != $ pref ) { $ pref = $ param ; set_user_preference ( 'repository_wikimedia_maxheight' , $ pref ) ; } return $ pref ; }
docstring: Returns maximum height for images
  
  Takes the maximum height for images eithre from search form or from
  user preferences, updates user preferences if needed
  
  @return int
docstring_tokens: Returns maximum height for images