diff --git a/extension/wikiScript.php b/extension/wikiScript.php
index e914c0ac909dc034c27c29d8ff378a766ec4ed29..9cb46fa14f029321dbfd9b7792f84df5f004a5c5 100644
--- a/extension/wikiScript.php
+++ b/extension/wikiScript.php
@@ -225,7 +225,7 @@ function loadWikiContent($paramArray, $qfq) {
     $wikiPageContent = $resultArray[0][WIKI_PAGE_COLUMN_CONTENT];
 
     // If the content as a whole will be edited there is no need to parse
-    if ($action === 'editAll') {
+    if ($action === WIKI_TOKEN_EDIT_ALL) {
         echo $wikiPageContent;
         return;
     }