aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-14 22:22:30 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-14 22:22:30 +0100
commit89682886005f1e6b36e664f47b3b0862d62846e6 (patch)
tree94a7263ad3aceec00a263952628eb4b210cd5ea0 /app
parentade1524d43150a45f633e6efac3d7fdea3e1d802 (diff)
Fix extension API (coding style)
is_enabled() becomes isEnabled(). Sorry for this coding style mistake :s
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/extensionController.php4
-rw-r--r--app/views/extension/index.phtml2
2 files changed, 3 insertions, 3 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>