mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:55:19 +00:00
Update Embedfiles.php
eliminates a database call
This commit is contained in:
parent
58609c0670
commit
b56d4753a7
1 changed files with 0 additions and 16 deletions
|
@ -170,22 +170,6 @@ class Embedfiles extends Controller
|
|||
$ext = EMPTY_STR;
|
||||
}
|
||||
|
||||
// $alt = $r[0]['title'];
|
||||
//$alt = $_POST["filename"];
|
||||
/*
|
||||
if (!$alt) {
|
||||
$a = q(
|
||||
"select filename from attach where hash = '%s' and uid = %d limit 1",
|
||||
dbesc($resource),
|
||||
intval($channel['channel_id'])
|
||||
);
|
||||
if ($a) {
|
||||
$alt = $a[0]['filename'];
|
||||
} else {
|
||||
$alt = t('Image/photo');
|
||||
}
|
||||
}
|
||||
*/
|
||||
$alt = ' alt="' . $_POST["filename"] . '"';
|
||||
|
||||
$output = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $resource . ']'
|
||||
|
|
Loading…
Reference in a new issue