Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Minor code changes for L* 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aldus committed Nov 18, 2016
1 parent 034ec9b commit f442f8e
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions include.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,17 @@
*
*
*/
$fields = array( 'skin', 'menu', 'width', 'height' );

$q = $database->build_mysql_query(
'SELECT',
TABLE_PREFIX."mod_wysiwyg_admin",
$fields,
'`editor` = \''.WYSIWYG_EDITOR.'\''
$wysiwyg_info = array();
$database->execute_query(
"SELECT `skin`,`menu`,`width`,`height` FROM `".TABLE_PREFIX."mod_wysiwyg_admin` WHERE `editor` = '".WYSIWYG_EDITOR."'",
true,
$wysiwyg_info,
false
);
$result = $database->query( $q );
// $wysiwyg_info = $result->fetchRow( MYSQL_ASSOC );
$wysiwyg_info = $result->fetchRow( PDO::FETCH_ASSOC );


/**
* Skin
* Possibilities are 'moono' or 'moonocolor'.
* Possibilities are 'moono', 'moonocolor' or 'moono-lisa'.
*/
$ckeditor->config['skin'] = $wysiwyg_info['skin'];

Expand Down

0 comments on commit f442f8e

Please sign in to comment.