Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

convert old layouts to new layout names so end user doesn't freak out

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
commit 748df3004f1dc0b4966a3525d0aa312fed06268e 1 parent 573c0f2
authored February 13, 2011

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  functions.php
3  functions.php
@@ -221,6 +221,9 @@ function is_cp_theme_layout($choices) {
221 221
 
222 222
 function is_cp_layout_avail($layout, $avail_layouts) {
223 223
 	if (empty($layout)) return false;
  224
+	if ($layout == 'gn') $layout = 'lgn';
  225
+	if ($layout == 'standard') $layout = '3c';
  226
+	if ($layout == 'v') $layout = '2cvl';
224 227
 	if (empty($avail_layouts)) $avail_layouts = '2cr,2cl,2cvr,2cvl,3c,3c2r,3c2l,v3c,v3cr,v3cl,lgn,rgn';
225 228
 	$avail_layouts = explode(",",$avail_layouts);
226 229
 	foreach ($avail_layouts as $able_layout) {

0 notes on commit 748df30

Please sign in to comment.
Something went wrong with that request. Please try again.