From ef0aca85c27df1d64fc38033685767ba89457ecb Mon Sep 17 00:00:00 2001 From: Sergey Romaneko Date: Thu, 25 Oct 2012 13:09:52 +0300 Subject: [PATCH] Shortcodes API: renamed exist() to exists() method --- monstra/engine/shortcodes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monstra/engine/shortcodes.php b/monstra/engine/shortcodes.php index dbccc5a..6679a3e 100644 --- a/monstra/engine/shortcodes.php +++ b/monstra/engine/shortcodes.php @@ -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. * * - * if (Shortcode::exist('shortcode_name')) { + * if (Shortcode::exists('shortcode_name')) { * // do something... * } * * * @param string $shortcode Shortcode tag. */ - pulbic static function exist($shortcode) { + pulbic static function exists($shortcode) { // Redefine vars $shortcode = (string) $shortcode;