1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-05 20:57:49 +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; $shortcode = (string) $shortcode;
// Delete 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. * Check if a shortcode has been registered.
* *
* <code> * <code>
* if (Shortcode::exist('shortcode_name')) { * if (Shortcode::exists('shortcode_name')) {
* // do something... * // do something...
* } * }
* </code> * </code>
* *
* @param string $shortcode Shortcode tag. * @param string $shortcode Shortcode tag.
*/ */
pulbic static function exist($shortcode) { pulbic static function exists($shortcode) {
// Redefine vars // Redefine vars
$shortcode = (string) $shortcode; $shortcode = (string) $shortcode;