MDL-75211 mod_data: show batch select only if delcheck is present
This commit is contained in:
@@ -215,6 +215,16 @@ class template {
|
||||
$this->tags = $matches['tags'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a tag is present in the template.
|
||||
*
|
||||
* @param bool $tagname the tag to check (without ##)
|
||||
* @return bool if the tag is present
|
||||
*/
|
||||
public function has_tag(string $tagname): bool {
|
||||
return in_array($tagname, $this->tags);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the current template name.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user