File tree 1 file changed +7
-0
lines changed
Upload/inc/plugins/yourcode
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ function yourcode_run($message)
50
50
$ yourcode ['active ' ]['simple ' ]['standard ' ]['replacement ' ][] = $ code ['replacement ' ];
51
51
}
52
52
}
53
+
54
+ $ yourcode ['active ' ]['simple ' ]['standard_count ' ] = count ($ yourcode ['active ' ]['simple ' ]['standard ' ]);
55
+
53
56
if (is_array ($ yourcode ['active ' ]['restricted_view ' ]['nestable ' ]) && !empty ($ yourcode ['active ' ]['restricted_view ' ]['nestable ' ]))
54
57
{
55
58
foreach ($ yourcode ['active ' ]['restricted_view ' ]['nestable ' ] as $ code )
@@ -64,6 +67,10 @@ function yourcode_run($message)
64
67
$ yourcode ['active ' ]['simple ' ]['nestable ' ][] = array ('find ' => $ code ['find ' ], 'replacement ' => $ code ['replacement ' ]);
65
68
}
66
69
}
70
+
71
+ $ yourcode ['active ' ]['simple ' ]['nestable_count ' ] = count ($ yourcode ['active ' ]['simple ' ]['nestable ' ]);
72
+ $ yourcode ['active ' ]['simple ' ]['callback_count ' ] = count ($ yourcode ['active ' ]['simple ' ]['callback ' ]);
73
+
67
74
$ parser ->mycode_cache = $ yourcode ['active ' ]['simple ' ];
68
75
}
69
76
You can’t perform that action at this time.
0 commit comments