summaryrefslogtreecommitdiffstats
path: root/inc/module.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/module.inc.php')
-rw-r--r--inc/module.inc.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/inc/module.inc.php b/inc/module.inc.php
index 9126cb32..73959471 100644
--- a/inc/module.inc.php
+++ b/inc/module.inc.php
@@ -27,6 +27,11 @@ class Module
return self::resolveDeps(self::$modules[$name]);
}
+ /**
+ *
+ * @param \Module $mod the module to check
+ * @return boolean true iff module deps are all found and enabled
+ */
private static function resolveDeps($mod)
{
if (!$mod->depsChecked) {
@@ -34,7 +39,7 @@ class Module
foreach ($mod->dependencies as $dep) {
if (!self::resolveDepsByName($dep)) {
if ($mod->enabled) {
- error_log("Disabling module $name: Dependency $dep failed.");
+ error_log("Disabling module {$mod->name}: Dependency $dep failed.");
}
$mod->enabled = false;
$mod->depsMissing = true;
@@ -142,10 +147,15 @@ class Module
{
$string = Dictionary::translate($this->name, 'module', 'module_name');
if ($string === false) {
- return $this->name;
+ return '!!' . $this->name . '!!';
}
return $string;
}
+
+ public function getPageTitle()
+ {
+ return Dictionary::translate($this->name, 'module', 'page_title');
+ }
public function getCategory()
{