changeset 13:7ef9cdf7b325 1.3.1

Re #1: * Update to v1.3.1 (hide rank theme selection for users with a special rank)
author IBBoard <dev@ibboard.co.uk>
date Sun, 07 Jun 2009 18:43:44 +0000
parents 31d2daed0532
children 7f85fc163738
files Install.xml contrib/Upgrade-1.2.3.xml
diffstat 2 files changed, 18 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Install.xml	Sun Jun 07 18:33:21 2009 +0000
+++ b/Install.xml	Sun Jun 07 18:43:44 2009 +0000
@@ -41,7 +41,7 @@
 			<link type="template" href="subsilver2.xml" lang="en-gb">subsilver2</link>
 			<link type="contrib" href="contrib/Upgrade-1.2.3.xml" lang="en-gb">Upgrade instructions from v1.2.3</link>
 		</link-group>
-		<mod-version>1.3.0</mod-version>
+		<mod-version>1.3.1</mod-version>
 		<installation>
 			<level>intermediate</level>
 			<time>3600</time>
@@ -50,6 +50,13 @@
 		<history>
 			<entry>
 				<date>2009-05-17</date>
+				<rev-version>1.3.1</rev-version>
+				<changelog lang="en-gb">
+					<change>Change: Hide rank theme if user has a special rank (as per v1.2)</change>
+				</changelog>
+			</entry>
+			<entry>
+				<date>2009-05-17</date>
 				<rev-version>1.3.0</rev-version>
 				<changelog lang="en-gb">
 					<change>Add: ACP interface for changing user's theme</change>
@@ -787,7 +794,7 @@
 				<action type="after-add"><![CDATA[				//Multi-rank theme: Construct the rank theme options, if applicable
 				$s_rank_theme_options = '';
 
-				if ($auth->acl_get('u_change_rank_theme'))
+				if ($user->data['user_rank'] == 0 && $auth->acl_get('u_change_rank_theme'))
 				{
 					$sql = $db->sql_build_query('SELECT', array(
 						'SELECT'	=> 'rtheme_id, rtheme_title',
--- a/contrib/Upgrade-1.2.3.xml	Sun Jun 07 18:33:21 2009 +0000
+++ b/contrib/Upgrade-1.2.3.xml	Sun Jun 07 18:43:44 2009 +0000
@@ -25,7 +25,7 @@
 		<link-group>
 			<link type="parent" href="../Install.xml" lang="en-gb">Main instructions</link>
 		</link-group>
-		<mod-version>1.3.0</mod-version>
+		<mod-version>1.3.1</mod-version>
 		<installation>
 			<level>intermediate</level>
 			<time>300</time>
@@ -34,6 +34,13 @@
 		<history>
 			<entry>
 				<date>2009-05-17</date>
+				<rev-version>1.3.1</rev-version>
+				<changelog lang="en-gb">
+					<change>Change: Hide rank theme if user has a special rank (as per v1.2)</change>
+				</changelog>
+			</entry>
+			<entry>
+				<date>2009-05-17</date>
 				<rev-version>1.3.0</rev-version>
 				<changelog lang="en-gb">
 					<change>Initial release of update instructions</change>
@@ -128,7 +135,7 @@
 			</edit>
 			<edit>
 				<find><![CDATA[				if ($user->data['user_rank'] == 0)]]></find>
-				<action type="replace-with"><![CDATA[				if ($auth->acl_get('u_change_rank_theme'))]]></action>
+				<action type="replace-with"><![CDATA[				if ($user->data['user_rank'] == 0 && $auth->acl_get('u_change_rank_theme'))]]></action>
 			</edit>
 			<edit>
 				<find><![CDATA[	'RANK_THEME'	=> $data['rank_theme'],