diff --git a/src/lib/Zikula/Bundle/CoreBundle/Bundle/Helper/BootstrapHelper.php b/src/lib/Zikula/Bundle/CoreBundle/Bundle/Helper/BootstrapHelper.php
index df536277de..c2e62c4e74 100644
--- a/src/lib/Zikula/Bundle/CoreBundle/Bundle/Helper/BootstrapHelper.php
+++ b/src/lib/Zikula/Bundle/CoreBundle/Bundle/Helper/BootstrapHelper.php
@@ -111,9 +111,6 @@ private function insert(MetaData $metadata)
case 'zikula-theme':
$type = 'T';
break;
- case 'zikula-plugin':
- $type = 'P';
- break;
default:
throw new \InvalidArgumentException(sprintf('Unknown type %s', $metadata->getType()));
}
@@ -123,7 +120,7 @@ private function insert(MetaData $metadata)
'autoload' => $autoload,
'bundleclass' => $class,
'bundletype' => $type,
- 'bundlestate' => AbstractBundle::STATE_ACTIVE, // todo - this has to be changed
+ 'bundlestate' => AbstractBundle::STATE_ACTIVE,
]);
}
diff --git a/src/lib/Zikula/Bundle/CoreBundle/Bundle/MetaData.php b/src/lib/Zikula/Bundle/CoreBundle/Bundle/MetaData.php
index 613f941c8e..521b961ef1 100644
--- a/src/lib/Zikula/Bundle/CoreBundle/Bundle/MetaData.php
+++ b/src/lib/Zikula/Bundle/CoreBundle/Bundle/MetaData.php
@@ -284,11 +284,11 @@ public function getThemeFilteredVersionInfoArray()
'description' => $this->getDescription(),
'version' => $this->getVersion(),
// 'capabilities' => $this->getCapabilities(),
- // @todo temp - add to DB and move to inverse in legacy code and refactor later checks
+ // It would be better to add capabilities to DB and move to inverse in legacy code and refactor later checks. refs #3644
'user' => isset($capabilities['user']) ? $capabilities['user'] : true,
'admin' => isset($capabilities['admin']) ? $capabilities['admin'] : true,
'system' => isset($capabilities['system']) ? $capabilities['system'] : false,
- 'xhtml' => isset($capabilities['xhtml']) ? $capabilities['xhtml'] : true, // @todo is this valid any longer?
+ 'xhtml' => isset($capabilities['xhtml']) ? $capabilities['xhtml'] : true, // this is not truly valid in 2.0
];
}
diff --git a/src/lib/Zikula/Bundle/CoreBundle/Bundle/Scanner.php b/src/lib/Zikula/Bundle/CoreBundle/Bundle/Scanner.php
index a621af2fe7..0fd91b0368 100644
--- a/src/lib/Zikula/Bundle/CoreBundle/Bundle/Scanner.php
+++ b/src/lib/Zikula/Bundle/CoreBundle/Bundle/Scanner.php
@@ -66,7 +66,7 @@ public function decode($file)
$base = substr($base, strlen($zkRoot) + 1);
$json = json_decode($this->getFileContents($file), true);
- if (\JSON_ERROR_NONE === json_last_error() && true === $this->validateBasic($json)) {
+ if (\JSON_ERROR_NONE === json_last_error()) {
// add base-path for future use
$json['extra']['zikula']['base-path'] = $base;
@@ -102,32 +102,6 @@ public function getThemesMetaData($indexByShortName = false)
return $this->getMetaData('zikula-theme', $indexByShortName);
}
- // @todo this can probably be removed in favour of ComposerValidationHelper
- private function validateBasic($json)
- {
- if (!isset($json['type'])) {
- return false;
- }
-
- switch ($json['type']) {
- case 'zikula-module':
- case 'zikula-theme':
- break;
- default:
- return false;
- }
-
- if (!isset($json['autoload']['psr-4'])) {
- return false;
- }
-
- if (!isset($json['extra']['zikula']['class'])) {
- return false;
- }
-
- return true;
- }
-
private function getMetaData($type, $indexByShortName)
{
$array = [];
diff --git a/src/lib/Zikula/Bundle/CoreBundle/CoreBundle.php b/src/lib/Zikula/Bundle/CoreBundle/CoreBundle.php
index dded497f0a..339c47593a 100644
--- a/src/lib/Zikula/Bundle/CoreBundle/CoreBundle.php
+++ b/src/lib/Zikula/Bundle/CoreBundle/CoreBundle.php
@@ -31,7 +31,6 @@ public function build(ContainerBuilder $container)
$container->addCompilerPass(new OverrideBlameableListenerPass());
- // todo - see if we can do this only on module install/upgrade - drak
$container->addCompilerPass(new ValidateServiceDefinitionsPass(), PassConfig::TYPE_AFTER_REMOVING);
}
}
diff --git a/src/lib/Zikula/Bundle/CoreBundle/EventListener/ClickjackProtectionListener.php b/src/lib/Zikula/Bundle/CoreBundle/EventListener/ClickjackProtectionListener.php
index 5c3623ed7c..d687dc8e5c 100644
--- a/src/lib/Zikula/Bundle/CoreBundle/EventListener/ClickjackProtectionListener.php
+++ b/src/lib/Zikula/Bundle/CoreBundle/EventListener/ClickjackProtectionListener.php
@@ -18,7 +18,7 @@
/**
* Sets x-origin headers to prevent clickjacking attacks.
*
- * TODO consider https://github.com/nelmio/NelmioSecurityBundle for a future major release
+ * Consider https://github.com/nelmio/NelmioSecurityBundle for a future major release refs #3646
*/
class ClickjackProtectionListener implements EventSubscriberInterface
{
diff --git a/src/lib/Zikula/Bundle/CoreBundle/Resources/public/css/bootstrap_variables.less b/src/lib/Zikula/Bundle/CoreBundle/Resources/public/css/bootstrap_variables.less
index 984f624b91..00f945a3c9 100644
--- a/src/lib/Zikula/Bundle/CoreBundle/Resources/public/css/bootstrap_variables.less
+++ b/src/lib/Zikula/Bundle/CoreBundle/Resources/public/css/bootstrap_variables.less
@@ -194,7 +194,6 @@
//** `` border color
@input-border: #ccc;
-// TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
//** Default `.form-control` border radius
// This has no effect on `