this should get rid of the Call to ftp://ftp. function error
This commit is contained in:
parent
e10f863f1c
commit
4400b385b3
2 changed files with 12 additions and 6 deletions
|
@ -38,9 +38,12 @@ class CustomViewImageTheme extends ViewImageTheme {
|
|||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
||||
}
|
||||
|
||||
if(!is_null($image->rating)) {
|
||||
$h_rating = Ratings::rating_to_human($image->rating);
|
||||
$html .= "<br>Rating: $h_rating";
|
||||
if(!is_null($image->rating) && file_exists("ext/rating")) {
|
||||
if($image->rating == null || $image->rating == "u"){
|
||||
$image->rating = "u";
|
||||
}
|
||||
$h_rating = Ratings::rating_to_human($image->rating);
|
||||
$html .= "<br>Rating: $h_rating";
|
||||
}
|
||||
|
||||
return $html;
|
||||
|
|
|
@ -44,9 +44,12 @@ class CustomViewImageTheme extends ViewImageTheme {
|
|||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
||||
}
|
||||
|
||||
if(!is_null($image->rating)) {
|
||||
$h_rating = Ratings::rating_to_human($image->rating);
|
||||
$html .= "<br>Rating: $h_rating";
|
||||
if(!is_null($image->rating) && file_exists("ext/rating")) {
|
||||
if($image->rating == null || $image->rating == "u"){
|
||||
$image->rating = "u";
|
||||
}
|
||||
$h_rating = Ratings::rating_to_human($image->rating);
|
||||
$html .= "<br>Rating: $h_rating";
|
||||
}
|
||||
|
||||
return $html;
|
||||
|
|
Reference in a new issue