$tag_str], ['id' => $item]); info(L10n::t('Tag removed') . EOL ); goaway(System::baseUrl() . '/' . $_SESSION['photo_return']); // NOTREACHED } function tagrm_content(App $a) { $o = ''; if (!local_user()) { goaway(System::baseUrl() . '/' . $_SESSION['photo_return']); // NOTREACHED } $item = (($a->argc > 1) ? intval($a->argv[1]) : 0); if (!$item) { goaway(System::baseUrl() . '/' . $_SESSION['photo_return']); // NOTREACHED } $r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($item), intval(local_user()) ); if (!DBM::is_result($r)) { goaway(System::baseUrl() . '/' . $_SESSION['photo_return']); } $arr = explode(',', $r[0]['tag']); if (!count($arr)) { goaway(System::baseUrl() . '/' . $_SESSION['photo_return']); } $o .= '
' . L10n::t('Select a tag to remove: ') . '
'; $o .= ''; return $o; }