Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENHANCEMENT Added SSViewer::getOption() as a logical counterpart to S…

…SViewer::setOption()
  • Loading branch information...
commit 8113e9ce84433ab5424a716ee9f5fdc02d32c210 1 parent 52a895f
@chillu chillu authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 core/SSViewer.php
View
9 core/SSViewer.php
@@ -204,6 +204,15 @@ static function hasTemplate($templateList) {
public static function setOption($optionName, $optionVal) {
SSViewer::$options[$optionName] = $optionVal;
}
+
+ /**
+ * @param String
+ * @return Mixed
+ */
+ static function getOption($optionName) {
+ return SSViewer::$options[$optionName];
+ }
+
protected static $options = array(
'rewriteHashlinks' => true,
);
Please sign in to comment.
Something went wrong with that request. Please try again.