This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: /home/stas/Documente/www/wordpress/wp-includes/class.wp-scripts.php | |
=================================================================== | |
--- class.wp-scripts.php (revision 15473) | |
+++ class.wp-scripts.php (working copy) | |
@@ -60,8 +60,14 @@ | |
$after = $val; | |
continue; | |
} | |
- $data .= "$eol\t$var: \"" . esc_js( $val ) . '"'; | |
- $eol = ",\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checking main.lang ... | |
Checking line: 1 | |
Checking line: 2 | |
Checking line: 3 | |
Checking line: 4 | |
Checking line: 5 | |
Checking line: 6 | |
Checking line: 7 | |
Checking line: 8 | |
Checking line: 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Hide Courseware option and make group admins teacher | |
Author: stas | |
*/ | |
function cw_hide_group_profilegroup( $current_group ){ | |
// Check if Courseware is enabled | |
if( !class_exists( 'BPSP_Roles' ) ) | |
return $current_group; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Hide Courseware nav option and move them elsewhere... | |
Author: stas | |
*/ | |
class CW_Hacks { | |
public static $hide = false; | |
public static $options = array(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Just append `pastecode` to your controls | |
(function($) { | |
$.cleditor.buttons.pastecode = { | |
name: "pastecode", | |
image: "", | |
title: "Code", | |
command: "inserthtml", | |
popupName: "pastecode", | |
popupClass: "cleditorPrompt", | |
popupContent: "Paste the code:<br /><textarea cols='40' rows='3'></textarea><br /><input type='button' value='Ok' />", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src-pos/com/openbravo/pos/config/JPanelConfigGeneral.java b/src-pos/com/openbravo/pos/config/JPanelConfigGeneral.java | |
--- a/src-pos/com/openbravo/pos/config/JPanelConfigGeneral.java | |
+++ b/src-pos/com/openbravo/pos/config/JPanelConfigGeneral.java | |
@@ -121,6 +121,7 @@ | |
jcboMachinePrinter.addItem("ithaca"); | |
jcboMachinePrinter.addItem("surepos"); | |
jcboMachinePrinter.addItem("javapos"); | |
+ jcboMachinePrinter.addItem("fprint"); | |
jcboMachinePrinter.addItem("Not defined"); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edCanvas = $('body').find('textarea')[0]; | |
$('a.thickbox').unbind(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name courseware.nerd.ro; | |
access_log /var/log/nginx/localhost.access.log; | |
root /home/stas/Documente/www/cw/; | |
index index.php; | |
location / { | |
try_files $uri $uri/ /index.php?q=$uri&$args; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* check_template() | |
* | |
* Checks if current theme has the template file for this post type | |
*/ | |
function check_template() { | |
$template_name = 'single-event.php'; | |
$source_template_file = dirname( __FILE__ ) .'/templates/' . $template_name; | |
$theme_folder = get_stylesheet_directory(); | |
if( !file_exists( $theme_folder . '/' . $template_name ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bp-core/admin/bp-core-admin.php b/bp-core/admin/bp-core-admin.php | |
index 4061f84..16ed27c 100644 | |
--- bp-core/admin/bp-core-admin.php | |
+++ bp-core/admin/bp-core-admin.php | |
@@ -170,7 +170,10 @@ function bp_core_admin_component_setup_handler() { | |
// Settings form submitted, now save the settings. First, set active components | |
if ( isset( $_POST['bp_components'] ) ) { | |
+ require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' ); | |
+ // Save settings and upgrade schema |