summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ViewSource.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/ViewSource.php')
-rw-r--r--demos/quickstart/protected/pages/ViewSource.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ViewSource.php b/demos/quickstart/protected/pages/ViewSource.php
index 9a8d7d09..f267f318 100644
--- a/demos/quickstart/protected/pages/ViewSource.php
+++ b/demos/quickstart/protected/pages/ViewSource.php
@@ -27,6 +27,8 @@ class ViewSource extends TPage
$this->SourceList->dataBind();
$this->Highlighter->Language=$this->getFileLanguage($fileExt);
+ if($this->Request['lines']==='false')
+ $this->Highlighter->ShowLineNumbers=false;
$this->SourceView->Text=file_get_contents($this->_fullPath);
}