summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pages/editor/bbcode.xml2
-rw-r--r--templates/bbcode.inc.php5
2 files changed, 2 insertions, 5 deletions
diff --git a/pages/editor/bbcode.xml b/pages/editor/bbcode.xml
index 198d433..4b65361 100644
--- a/pages/editor/bbcode.xml
+++ b/pages/editor/bbcode.xml
@@ -10,7 +10,7 @@
<code>
<![CDATA[
<?PHP
- require_once('code/links.inc.php');
+ Uses('links');
$title = 'Edit \'' . $data['_data']['_page'] . '\'';
diff --git a/templates/bbcode.inc.php b/templates/bbcode.inc.php
index 8a41d46..e5de9ce 100644
--- a/templates/bbcode.inc.php
+++ b/templates/bbcode.inc.php
@@ -1,8 +1,5 @@
<?PHP
- require_once('code/message.inc.php');
- require_once('code/modules.inc.php');
-
- require_mod('code/bbcode.inc.php');
+ Uses('message', 'bbcode');
class bbcode_template {
function Get($data) {