diff options
| author | 2015-01-14 22:22:30 +0100 | |
|---|---|---|
| committer | 2015-01-14 22:22:30 +0100 | |
| commit | 89682886005f1e6b36e664f47b3b0862d62846e6 (patch) | |
| tree | 94a7263ad3aceec00a263952628eb4b210cd5ea0 | |
| parent | ade1524d43150a45f633e6efac3d7fdea3e1d802 (diff) | |
Fix extension API (coding style)
is_enabled() becomes isEnabled(). Sorry for this coding style mistake :s
| -rw-r--r-- | app/Controllers/extensionController.php | 4 | ||||
| -rw-r--r-- | app/views/extension/index.phtml | 2 | ||||
| -rw-r--r-- | lib/Minz/Extension.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/app/Controllers/extensionController.php b/app/Controllers/extensionController.php index 692595a4c..5dd7eac89 100644 --- a/app/Controllers/extensionController.php +++ b/app/Controllers/extensionController.php @@ -73,7 +73,7 @@ class FreshRSS_extension_Controller extends Minz_ActionController { $url_redirect); } - if ($ext->is_enabled()) { + if ($ext->isEnabled()) { Minz_Request::bad(_t('feedback.extensions.already_enabled', $ext_name), $url_redirect); } @@ -129,7 +129,7 @@ class FreshRSS_extension_Controller extends Minz_ActionController { $url_redirect); } - if (!$ext->is_enabled()) { + if (!$ext->isEnabled()) { Minz_Request::bad(_t('feedback.extensions.not_enabled', $ext_name), $url_redirect); } diff --git a/app/views/extension/index.phtml b/app/views/extension/index.phtml index fd97c5e81..25b0eb9ee 100644 --- a/app/views/extension/index.phtml +++ b/app/views/extension/index.phtml @@ -14,7 +14,7 @@ <?php $name_encoded = urlencode($ext->getName()); ?> <div class="stick"> <a class="btn open-slider" href="<?php echo _url('extension', 'configure', 'e', $name_encoded); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.action.manage'); ?></a> - <?php if ($ext->is_enabled()) { ?> + <?php if ($ext->isEnabled()) { ?> <button class="btn active" form="form-extension" formaction="<?php echo _url('extension', 'disable', 'e', $name_encoded); ?>"><?php echo _t('gen.action.disable'); ?></button> <?php } else { ?> <button class="btn" form="form-extension" formaction="<?php echo _url('extension', 'enable', 'e', $name_encoded); ?>"><?php echo _t('gen.action.enable'); ?></button> diff --git a/lib/Minz/Extension.php b/lib/Minz/Extension.php index ac7231e9c..5069362b5 100644 --- a/lib/Minz/Extension.php +++ b/lib/Minz/Extension.php @@ -92,7 +92,7 @@ class Minz_Extension { * * @return true if extension is enabled, false else. */ - public function is_enabled() { + public function isEnabled() { return $this->is_enabled; } |
