mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
MINOR added helper for dev
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@116815 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b0c8c424f8
commit
0a418fc940
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
class DocumentationViewerExtension extends Extension {
|
||||
|
||||
static $google_analytics_code = null;
|
||||
|
||||
public function init() {
|
||||
@ -19,4 +20,11 @@ class DocumentationViewerExtension extends Extension {
|
||||
function getGoogleAnalyticsCode() {
|
||||
return self::$google_analytics_code;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Bool
|
||||
*/
|
||||
function IsDev() {
|
||||
return (Director::isDev());
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user