This commit is contained in:
Hannes Mannerheim 2016-01-23 01:50:00 +01:00
parent 49a453b631
commit 2348f803f2
3 changed files with 2 additions and 5 deletions

View File

@ -127,7 +127,7 @@ class ApiQvitterOembedNoticeAction extends ApiAction
} catch (ServerException $e) { } catch (ServerException $e) {
// //
} }
if(method_exists('File_thumbnail','url')) { if(!empty($thumb) && method_exists('File_thumbnail','url')) {
try { try {
$thumb_url = File_thumbnail::url($thumb->filename); $thumb_url = File_thumbnail::url($thumb->filename);
$oembed['thumbnail_url'] = $thumb_url; $oembed['thumbnail_url'] = $thumb_url;

View File

@ -446,8 +446,6 @@ class QvitterAction extends ApiAction
} }
?> ?>
<li class="fullwidth language dropdown-divider"></li>
<li class="fullwidth"><a href="https://git.gnu.io/h2p/Qvitter/tree/master/locale" target="_blank" id="add-edit-language-link"></a></li>
</ul> </ul>
</li> </li>
</ul> </ul>

View File

@ -1,5 +1,4 @@
, {
"addEditLanguageLink":"Help translate {site-title} to your language"{
"directionality":"rtl", "directionality":"rtl",
"languageName": "فارسی", "languageName": "فارسی",
"loginUsername": "شناسه یا ایمیل", "loginUsername": "شناسه یا ایمیل",