Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.583 kb
<?php
//So that we don't need a certain root folder name - Thanks Dan Hensby: https://github.com/dhensby/
define('MOD_DOAP_PATH',rtrim(dirname(__FILE__), DIRECTORY_SEPARATOR));
$folders = explode(DIRECTORY_SEPARATOR,MOD_DOAP_PATH);
define('MOD_DOAP_DIR',rtrim(array_pop($folders),DIRECTORY_SEPARATOR));
unset($folders);
/*
* Add this line to your _config.php to enable versioning on your DataObjectAsPage classes.
*
* Unfortunately this will to apply to all your DOAP classes as it needs to apply to the root DOAP class.
*
DataObjectAsPage::enable_versioning();
*
*/
Jump to Line
Something went wrong with that request. Please try again.