Merge branch 'patch-1' into 'master'

fix some smaller typos / variable names

See merge request !5
This commit is contained in:
Jana Deutschländer 2017-01-04 15:27:09 +01:00
commit 3f78608ebd

View file

@ -3,7 +3,10 @@
?> ?>
<?php <?php
/** @var \helper_plugin_qc $qc */
$doPlugin = plugin_load('helper','do'); $doPlugin = plugin_load('helper','do');
/** @var \helper_plugin_qc $qc */
$qc = plugin_load('helper','qc'); $qc = plugin_load('helper','qc');
if ($doPlugin !== null ||$qc ) { if ($doPlugin !== null ||$qc ) {
echo "<ul class=\"page-attributes\">"; echo "<ul class=\"page-attributes\">";
@ -13,9 +16,9 @@
$qc->tplErrorCount(); $qc->tplErrorCount();
echo "</li>"; echo "</li>";
} }
if ($doplugin !== null ) { if ($doPlugin !== null ) {
$tasks = $doplugin->getPageTaskCount(); $count = $doPlugin->getPageTaskCount();
$num = $tasks[count]; $num = $count['count'];
$title = ""; $title = "";
if($num == 0){ // no tasks - does not exist do in plug-in if($num == 0){ // no tasks - does not exist do in plug-in