[svn r11542] fix a bug in switching css request

skala
Eric Marguin 19 years ago
parent df73abf8c7
commit f0746f7839
  1. 8
      main/admin/settings.php

@ -1,5 +1,5 @@
<?php
// $Id: settings.php 11514 2007-03-10 10:00:11Z yannoo $
// $Id: settings.php 11542 2007-03-12 15:30:11Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -474,7 +474,11 @@ function store_stylesheets()
$style = Database::escape_string($_POST['style']);
if (is_style($style))
{
$sql = "UPDATE $table_settings_current (variable,category,selected_value) VALUES ('stylesheets','stylesheets','".$style."')";
$sql = 'UPDATE '.$table_settings_current.' SET
selected_value = "'.$style.'"
WHERE variable = "stylesheets"
AND category = "stylesheets"';
echo $sql;
api_sql_query($sql, __LINE__, __FILE__);
}

Loading…
Cancel
Save