Commit b4aa0c33 authored by Penny Leach's avatar Penny Leach
Browse files

the artefact base class now includes the artefact lib so you don't have

to. moved the format constants to lib/artefact.php
parent 3afc0113
......@@ -25,7 +25,7 @@
*/
defined('INTERNAL') || die();
require_once('artefact.php');
/**
* Base artefact plugin class
......
......@@ -27,6 +27,12 @@
defined('INTERNAL') || die();
define('FORMAT_ARTEFACT_LISTSELF', 'listself');
define('FORMAT_ARTEFACT_LISTCHILDREN', 'listchildren');
define('FORMAT_ARTEFACT_RENDERFULL', 'renderfull');
define('FORMAT_ARTEFACT_RENDERMETADATA', 'rendermetadata');
/**
* Given an artefact plugin name, this function will test if
* it's installable or not. If not, InstallationException will be thrown.
......
......@@ -28,11 +28,6 @@ defined('INTERNAL') || die();
define('TEMPLATE_RENDER_READONLY', 1);
define('TEMPLATE_RENDER_EDITMODE', 2);
define('FORMAT_ARTEFACT_LISTSELF', 'listself');
define('FORMAT_ARTEFACT_LISTCHILDREN', 'listchildren');
define('FORMAT_ARTEFACT_RENDERFULL', 'renderfull');
define('FORMAT_ARTEFACT_RENDERMETADATA', 'rendermetadata');
function template_parse($templatename) {
$t = array();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment