1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-03 19:57:57 +02:00

Shortcodes API: renamed exist() to exists() method

This commit is contained in:
Sergey Romaneko
2012-10-25 13:09:52 +03:00
parent 7e6b02a96c
commit ef0aca85c2

View File

@@ -95,7 +95,7 @@
$shortcode = (string) $shortcode;
// Delete shortcode
if (Shortcode::exist($shortcode)) unset(Shortcode::$shortcode_tags[$shortcode]);
if (Shortcode::exists($shortcode)) unset(Shortcode::$shortcode_tags[$shortcode]);
}
@@ -116,14 +116,14 @@
* Check if a shortcode has been registered.
*
* <code>
* if (Shortcode::exist('shortcode_name')) {
* if (Shortcode::exists('shortcode_name')) {
* // do something...
* }
* </code>
*
* @param string $shortcode Shortcode tag.
*/
pulbic static function exist($shortcode) {
pulbic static function exists($shortcode) {
// Redefine vars
$shortcode = (string) $shortcode;