Browse Source

A brand new sources file for helper functions and stuff

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
eb607a1467
2 changed files with 20 additions and 2 deletions
  1. 20 0
      Sources/Subs-Themes.php
  2. 0 2
      Sources/Themes.php

+ 20 - 0
Sources/Subs-Themes.php

@@ -0,0 +1,20 @@
+<?php
+
+/**
+ * Helper file for handing themes.
+ *
+ * Simple Machines Forum (SMF)
+ *
+ * @package SMF
+ * @author Simple Machines
+ *
+ * @copyright 2013 Simple Machines and individual contributors
+ * @license http://www.simplemachines.org/about/smf/license.php BSD
+ *
+ * @version 2.1 Alpha 1
+ */
+
+if (!defined('SMF'))
+	die('No direct access...');
+
+?>

+ 0 - 2
Sources/Themes.php

@@ -1276,9 +1276,7 @@ function ThemeInstall()
 	global $settings, $modSettings, $scripturl, $smcFunc, $forum_version;
 
 	checkSession('request');
-
 	isAllowedTo('admin_forum');
-	checkSession('request');
 
 	require_once($sourcedir . '/Subs-Package.php');