make "source[=|:]none" null the source
This commit is contained in:
parent
b7778b54c9
commit
6a1a57b1a2
@ -192,7 +192,8 @@ class TagEdit extends Extension {
|
|||||||
$matches = array();
|
$matches = array();
|
||||||
|
|
||||||
if(preg_match("/^source[=|:](.*)$/i", $event->term, $matches)) {
|
if(preg_match("/^source[=|:](.*)$/i", $event->term, $matches)) {
|
||||||
send_event(new SourceSetEvent(Image::by_id($event->id), $matches[1]));
|
$source = ($matches[1] !== "none" ? $matches[1] : null);
|
||||||
|
send_event(new SourceSetEvent(Image::by_id($event->id), $source));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($matches)) $event->metatag = true;
|
if(!empty($matches)) $event->metatag = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user