Sometimes 'page' is wanted, sometimes 'command' but basicly both want a command
[core.git] / inc / classes / main / helper / html / links / class_HtmlLinkHelper.php
index 09121d59c334248958ebb38465a33a241a82708d..e41de2db354e0492e77e2692d6a49e92636170e8 100644 (file)
@@ -84,10 +84,10 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate {
                } // END - if
 
                // Get page (this will throw an exception if not set)
-               $page = $helperInstance->convertDashesToUnderscores($requestInstance->getRequestElement('page'));
+               $command = $helperInstance->convertDashesToUnderscores($requestInstance->getRequestElement('command'));
 
                // Construct config entry
-               $configEntry = $page . '_' . $linkName . '_action_url';
+               $configEntry = $command . '_' . $linkName . '_action_url';
 
                // Is the deprecated parameter set?
                if (!is_null($linkBase)) {
@@ -95,7 +95,7 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate {
                        $helperInstance->deprecationWarning('[' . __METHOD__ . ':' . __LINE__ . ']:  linkBase is deprecated. Please remove it from your templates and add a config entry ' . $configEntry . ' in your config.php file.');
                } // END - if
 
-               // Determine link base from config now and 'page' request
+               // Determine link base from config now and 'command' request
                try {
                        $newLinkBase = $helperInstance->getConfigInstance()->getConfigEntry($configEntry);
                        $linkBase = $newLinkBase;