Changeset 3115:8a553212c2d3
- Timestamp:
- 10/11/15 11:07:53 (10 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r3112 r3115 183 183 $media_video_width = abs((integer) $_POST['media_video_width']); 184 184 if ($media_video_width < 0) { $media_video_width = 400; } 185 185 186 186 $media_video_height = abs((integer) $_POST['media_video_height']); 187 187 if ($media_video_height < 0) { $media_video_height = 300; } -
inc/dbschema/upgrade.php
r3035 r3115 455 455 } 456 456 457 if (version_compare($version,'2.9','<')) 458 { 459 # Some new settings should be initialized, prepare db queries 460 $strReq = 'INSERT INTO '.$core->prefix.'setting'. 461 ' (setting_id,setting_ns,setting_value,setting_type,setting_label)'. 462 ' VALUES(\'%s\',\'system\',\'%s\',\'integer\',\'%s\')'; 463 $core->con->execute(sprintf($strReq,'media_video_width','400','Media video insertion width')); 464 $core->con->execute(sprintf($strReq,'media_video_height','300','Media video insertion height')); 465 } 466 457 467 $core->setVersion('core',DC_VERSION); 458 468 $core->blogDefaults();
Note: See TracChangeset
for help on using the changeset viewer.